diff --git a/src/main/java/gov/usgs/earthquake/nshmp/model/ModelLoader.java b/src/main/java/gov/usgs/earthquake/nshmp/model/ModelLoader.java index a99e23e91740ebb9336d064dfdc4273dad84ffe7..07e175f375f46106a32baa38f45571ff56a195ba 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/model/ModelLoader.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/model/ModelLoader.java @@ -1212,7 +1212,7 @@ abstract class ModelLoader { Path.of(feature.name)); SourceTree tree = SourceTree.builder() - .path(geojson.getParent()) + .path(checkNotNull(geojson.getParent())) .name(feature.name) .id(feature.id) .setting(data.tectonicSetting()) diff --git a/src/main/java/gov/usgs/earthquake/nshmp/model/Models.java b/src/main/java/gov/usgs/earthquake/nshmp/model/Models.java index 648c91c0a73308af40d092791c99348dcdc24f24..5f9b8a6bce7726cb79091acfbfc91a74721e35d1 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/model/Models.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/model/Models.java @@ -68,7 +68,8 @@ public class Models { // System.out.println(GSON.toJson(tree(model, 8309))); // UCERF3 // System.out.println(GSON.toJson(tree(model, 8129))); // UCERF3 grid - System.out.println(GSON.toJson(tree(model, 2591))); + // System.out.println(GSON.toJson(tree(model, 2591))); // Stonewall Ant. + System.out.println(GSON.toJson(tree(model, 2535))); // Steens } @@ -222,7 +223,7 @@ public class Models { } static final class MfdBranch { - final String id; + final String id; // TODO change to name final double weight; final Mfd mfd;