Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-haz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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-haz
Commits
c5cd0c1f
Commit
c5cd0c1f
authored
3 years ago
by
Powers, Peter M.
Browse files
Options
Downloads
Patches
Plain Diff
spotbugs corrections
parent
52b00cc3
No related branches found
No related tags found
2 merge requests
!577
Production Release | nshmp-haz
,
!573
Dependency updates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/gov/usgs/earthquake/nshmp/model/NshmTestsLarge.java
+8
-3
8 additions, 3 deletions
.../java/gov/usgs/earthquake/nshmp/model/NshmTestsLarge.java
with
8 additions
and
3 deletions
src/test/java/gov/usgs/earthquake/nshmp/model/NshmTestsLarge.java
+
8
−
3
View file @
c5cd0c1f
...
...
@@ -92,14 +92,14 @@ class NshmTestsLarge {
private
static
final
Path
DATA_PATH
=
Paths
.
get
(
"src/test/resources/e2e"
);
@Test
public
void
testConus2018
()
throws
IOException
{
public
void
testConus2018
()
{
testModel
(
"nshm-conus"
,
2018
,
CONUS_SITES
);
}
private
static
void
testModel
(
String
modelName
,
int
year
,
List
<
NamedLocation
>
locations
)
throws
IOException
{
List
<
NamedLocation
>
locations
)
{
Path
modelPath
=
MODEL_PATH
.
resolve
(
modelName
);
HazardModel
model
=
ModelLoader
.
load
(
modelPath
);
...
...
@@ -112,7 +112,7 @@ class NshmTestsLarge {
String
modelName
,
int
year
,
HazardModel
model
,
NamedLocation
location
)
throws
IOException
{
NamedLocation
location
)
{
// String actual = generateActual(model, location);
Map
<
String
,
XySequence
>
actual
=
generateActual
(
model
,
location
);
...
...
@@ -209,6 +209,11 @@ class NshmTestsLarge {
private
static
class
Curve
{
double
[]
xs
;
double
[]
ys
;
Curve
(
double
[]
xs
,
double
[]
ys
)
{
this
.
xs
=
xs
;
this
.
ys
=
ys
;
}
}
private
static
void
writeExpecteds
(
...
...
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