diff --git a/src/main/java/gov/usgs/earthquake/nshmp/calc/DisaggDataset.java b/src/main/java/gov/usgs/earthquake/nshmp/calc/DisaggDataset.java index cd1e2f10787fb7e1ae9db6e44559eaf435e5681c..46ed521df15328e9d2ac625e6eea4339276efc40 100644 --- a/src/main/java/gov/usgs/earthquake/nshmp/calc/DisaggDataset.java +++ b/src/main/java/gov/usgs/earthquake/nshmp/calc/DisaggDataset.java @@ -325,7 +325,7 @@ final class DisaggDataset { /* * Add a contributing source to a dataset. A contributor will likely be * added after multiple calls to add(data...) for the ruptures it represents - * wioth the total rate for the source having been tracked externally. + * with the total rate for the source having been tracked externally. */ Builder addChildContributor(DisaggContributor.Builder contributor) { checkState(parent != null, "Parent contributor has not been set"); @@ -354,11 +354,11 @@ final class DisaggDataset { /* * A dataset may not have any contributors if it was created from a - * DisaggConfig for use as a base DisaggDataset model. See the empty - * ImmutableList below. A Gmm dataset may also not have any contributors - * when the total contribution for a source set is low and one or more - * Gmm's do not make up any part of the contribution. (e.g. 2008 NSHM, - * site=Seattle, Imt=PGA, rp=2475: AB_03_GLOB_INTER contribution = 0.0) + * DisaggConfig for use as a base DisaggDataset model. See the empty List + * below. A Gmm dataset may also not have any contributors when the total + * contribution for a source set is low and one or more Gmm's do not make + * up any part of the contribution. (e.g. 2008 NSHM, site=Seattle, + * Imt=PGA, rp=2475: AB_03_GLOB_INTER contribution = 0.0) */ List<DisaggContributor> contributorList = (parent == null) ? List.of() @@ -503,7 +503,6 @@ final class DisaggDataset { /* Add to existing. */ if (childMap.containsKey(sc.source)) { SourceContributor.Builder child = (SourceContributor.Builder) childMap.get(sc.source); - // child.add(sc.rate, sc.residual, sc.rScaled, sc.mScaled, sc.εScaled); child.addValues(sc); return; } @@ -512,7 +511,6 @@ final class DisaggDataset { DisaggContributor.Builder sourceContributor = new SourceContributor.Builder() .source(sc.source, sc.location, sc.azimuth) .addValues(sc); - // .add(sc.rate, sc.residual, sc.rScaled, sc.mScaled, sc.εScaled); childMap.put(sc.source, sourceContributor); } @@ -526,8 +524,6 @@ final class DisaggDataset { (ClusterContributor.Builder) childMap.get(cc.cluster)); for (DisaggContributor child : cc.faults) { SourceContributor sc = (SourceContributor) child; - // sourceMap.get(sc.source).add(sc.rate, sc.residual, sc.rScaled, - // sc.mScaled, sc.εScaled); sourceMap.get(sc.source).addValues(sc); } return; @@ -542,7 +538,6 @@ final class DisaggDataset { SourceContributor sc = (SourceContributor) child; DisaggContributor.Builder sourceContributor = new SourceContributor.Builder() .source(sc.source, sc.location, sc.azimuth) - // .add(sc.rate, sc.residual, sc.rScaled, sc.mScaled, sc.εScaled); .addValues(sc); cb.addChild(sourceContributor); } @@ -570,7 +565,6 @@ final class DisaggDataset { /* Add to existing. */ if (childMap.containsKey(sc.section)) { SystemContributor.Builder child = (SystemContributor.Builder) childMap.get(sc.section); - // child.add(sc.rate, sc.residual, sc.rScaled, sc.mScaled, sc.εScaled); child.addValues(sc); child.addMfd(sc.mfd); return; @@ -581,7 +575,6 @@ final class DisaggDataset { DisaggContributor.Builder sourceContributor = new SystemContributor.Builder() .section(sc.section, sc.location, sc.azimuth, mfdBuilder) .addValues(sc); - // .add(sc.rate, sc.residual, sc.rScaled, sc.mScaled, sc.εScaled); childMap.put(sc.section, sourceContributor); }