Source tree parsing issues on Windows
When parsing the conus model on Windows the following exception is thrown:
java.nio.file.InvalidPathException: Illegal char <:> at index 34: Wasatch (Salt Lake City, cluster) : R1-1300-yr
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
Early on, we decided to represent the branch values of a SourceTree
using java.nio.Path
. While most branches are reflected in the file hierarchy of the source tree, we also occasionally use 'fake' paths where a colon separator is inserted. The idea was that this would be consistent with the string representation of a source tree branch assembled from multiple paths. I think the only place this happens right now is on the rate-tree
branches of cluster models. One option is to just change the string representation to not have a colon, the other is to use String
instead of Path
as a branch value with the latter requiring more work/changes.