Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-lib
Commits
1fc75e96
Commit
1fc75e96
authored
4 months ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
55a324ad
No related branches found
No related tags found
1 merge request
!432
General edits and improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/gov/usgs/earthquake/nshmp/model/Models.java
+1
-8
1 addition, 8 deletions
src/main/java/gov/usgs/earthquake/nshmp/model/Models.java
with
1 addition
and
8 deletions
src/main/java/gov/usgs/earthquake/nshmp/model/Models.java
+
1
−
8
View file @
1fc75e96
...
@@ -17,9 +17,6 @@ import java.util.function.Predicate;
...
@@ -17,9 +17,6 @@ import java.util.function.Predicate;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
java.util.stream.IntStream
;
import
java.util.stream.IntStream
;
import
com.google.gson.Gson
;
import
com.google.gson.GsonBuilder
;
import
gov.usgs.earthquake.nshmp.data.XySequence
;
import
gov.usgs.earthquake.nshmp.data.XySequence
;
import
gov.usgs.earthquake.nshmp.geo.json.Feature
;
import
gov.usgs.earthquake.nshmp.geo.json.Feature
;
import
gov.usgs.earthquake.nshmp.geo.json.FeatureCollection
;
import
gov.usgs.earthquake.nshmp.geo.json.FeatureCollection
;
...
@@ -37,10 +34,6 @@ import gov.usgs.earthquake.nshmp.tree.LogicTree;
...
@@ -37,10 +34,6 @@ import gov.usgs.earthquake.nshmp.tree.LogicTree;
*/
*/
public
class
Models
{
public
class
Models
{
static
final
Gson
GSON
=
new
GsonBuilder
()
.
setPrettyPrinting
()
.
create
();
/**
/**
* Returns an object for JSON serialization with the name and ID of all source
* Returns an object for JSON serialization with the name and ID of all source
* logic tree groups in the supplied model organized by tectonic setting and
* logic tree groups in the supplied model organized by tectonic setting and
...
@@ -226,7 +219,7 @@ public class Models {
...
@@ -226,7 +219,7 @@ public class Models {
/*
/*
* Map source tree into a logic tree of MFDs. Note that the mfdTree
* Map source tree into a logic tree of MFDs. Note that the mfdTree
* created below is actually a LogicGroup bec
u
ase a SourceTree may contain
* created below is actually a LogicGroup beca
u
se a SourceTree may contain
* null (do-nothing) branches such that weights do not sum to one.
* null (do-nothing) branches such that weights do not sum to one.
*/
*/
LogicTree
<
Mfd
>
mfdTree
=
ModelTrees
.
toMfdTree
(
tree
);
LogicTree
<
Mfd
>
mfdTree
=
ModelTrees
.
toMfdTree
(
tree
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment