Skip to content
Snippets Groups Projects
Commit 5dc7da54 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

cluster source cleanup

parent f6eca2e3
No related branches found
No related tags found
1 merge request!277mfd-tree and text updates
...@@ -85,8 +85,7 @@ public class ClusterSource implements Source { ...@@ -85,8 +85,7 @@ public class ClusterSource implements Source {
@Override @Override
public List<Mfd> mfds() { public List<Mfd> mfds() {
// TODO this is needed for rate calcs and this // TODO this should be consistent with what is done in Models
// may be missing application of weights
List<Mfd> xyMfds = new ArrayList<>(); List<Mfd> xyMfds = new ArrayList<>();
for (FaultRuptureSet frs : faults) { for (FaultRuptureSet frs : faults) {
checkState(frs.size() == 1); // TODO bad assumption of single source checkState(frs.size() == 1); // TODO bad assumption of single source
...@@ -94,11 +93,6 @@ public class ClusterSource implements Source { ...@@ -94,11 +93,6 @@ public class ClusterSource implements Source {
xyMfds.add(Mfd.Builder.from(mfd).scale(rate).build()); xyMfds.add(Mfd.Builder.from(mfd).scale(rate).build());
} }
} }
// for (FaultSource fault : faults) {
// for (Mfd mfd : fault.mfds()) {
// xyMfds.add(Mfd.Builder.from(mfd).scale(rate).build());
// }
// }
return List.copyOf(xyMfds); return List.copyOf(xyMfds);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment