Skip to content
Snippets Groups Projects
Commit 2bbd776b authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Merge branch 'disagg' into 'main'

Disagg

See merge request !594
parents 3311981c 973e4059
No related branches found
No related tags found
2 merge requests!595Production Release | nshmp-haz,!594Disagg
Pipeline #113870 passed with warnings
...@@ -17,12 +17,9 @@ git { ...@@ -17,12 +17,9 @@ git {
def pass = System.getenv("GIT_NSHMP_PASSWORD") def pass = System.getenv("GIT_NSHMP_PASSWORD")
if (user && pass) { if (user && pass) {
fetch("https://code.usgs.gov/ghsc/nshmp/nshms/nshm-hawaii.git", { fetch("https://code.usgs.gov/ghsc/nshmp/nshms/nshm-conus.git", {
name "nshmp-haz-dep--nshm-hi-2021" name "nshmp-haz-dep--nshm-conus-2018"
tag "2.0.0" branch "origin/5.1.0-rc"
// fetch("https://code.usgs.gov/ghsc/nshmp/nshms/nshm-conus.git", {
// name "nshmp-haz-dep--nshm-conus-2018"
// tag "main"
}) })
} }
} }
...@@ -15,7 +15,6 @@ import java.util.concurrent.ExecutorService; ...@@ -15,7 +15,6 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
import com.google.common.util.concurrent.ListeningExecutorService; import com.google.common.util.concurrent.ListeningExecutorService;
...@@ -58,8 +57,6 @@ public class ServletUtil { ...@@ -58,8 +57,6 @@ public class ServletUtil {
public static final int THREAD_COUNT; public static final int THREAD_COUNT;
private static final Logger LOGGER = LoggerFactory.getLogger(ServletUtil.class);
@Value("${nshmp-haz.model-path}") @Value("${nshmp-haz.model-path}")
private Path modelPath; private Path modelPath;
......
...@@ -77,7 +77,7 @@ public class DisaggController { ...@@ -77,7 +77,7 @@ public class DisaggController {
description = "Disaggregation", description = "Disaggregation",
responseCode = "200") responseCode = "200")
@Get( @Get(
uri = "rp/{longitude}/{latitude}/{vs30}/{returnPeriod}{?imt}", uri = "{longitude}/{latitude}/{vs30}/{returnPeriod}{?imt}",
produces = MediaType.APPLICATION_JSON) produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGetDisaggReturnPeriod( public HttpResponse<String> doGetDisaggReturnPeriod(
HttpRequest<?> http, HttpRequest<?> http,
...@@ -126,7 +126,7 @@ public class DisaggController { ...@@ -126,7 +126,7 @@ public class DisaggController {
description = "Disaggregation", description = "Disaggregation",
responseCode = "200") responseCode = "200")
@Get( @Get(
uri = "iml/{longitude}/{latitude}/{vs30}", uri = "{longitude}/{latitude}/{vs30}",
produces = MediaType.APPLICATION_JSON) produces = MediaType.APPLICATION_JSON)
public HttpResponse<String> doGetDisaggIml( public HttpResponse<String> doGetDisaggIml(
HttpRequest<?> http, HttpRequest<?> http,
...@@ -139,6 +139,10 @@ public class DisaggController { ...@@ -139,6 +139,10 @@ public class DisaggController {
@Schema( @Schema(
minimum = "150", minimum = "150",
maximum = "3000") @PathVariable double vs30, maximum = "3000") @PathVariable double vs30,
@QueryValue @Nullable Double PGA,
@QueryValue @Nullable Double SA0P2,
@QueryValue @Nullable Double SA1P0,
@QueryValue @Nullable Double SA5P0,
@QueryValue @Nullable Set<DisaggDataType> out) { @QueryValue @Nullable Set<DisaggDataType> out) {
/* /*
......
...@@ -21,5 +21,4 @@ nshmp-haz: ...@@ -21,5 +21,4 @@ nshmp-haz:
# To specify the model to use: # To specify the model to use:
# java -jar build/libs/nshmp-haz.jar --models=<path/to/models> # java -jar build/libs/nshmp-haz.jar --models=<path/to/models>
# #
model-path: ${models:libs/nshmp-haz-dep--nshm-hi-2021} model-path: ${models:libs/nshmp-haz-dep--nshm-conus-2018}
# model-path: ${models:libs/nshmp-haz-dep--nshm-conus-2018}
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