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

test

parent 73b0cfb5
No related branches found
No related tags found
2 merge requests!755Production Release | nshmp-haz,!754NSHM Unit tests
......@@ -149,25 +149,29 @@ class NshmTestUtils {
private static Map<String, XySequence> generateActual(
NshmModel nshmModel,
NamedLocation location) {
LOGGER.info("Generate acutal");
Site site = createSite(
location.location(),
nshmModel.model.siteData());
LOGGER.info("site created ");
CalcConfig config = CalcConfig.copyOf(nshmModel.model.config())
.imts(nshmModel.nshm.imts())
.build();
LOGGER.info("calc created ");
Hazard hazard = HazardCalcs.hazard(
nshmModel.model,
config,
site,
nshmModel.exec);
LOGGER.info("hazard created ");
Map<String, XySequence> xyMap = hazard.curves().entrySet().stream()
.collect(Collectors.toMap(
e -> e.getKey().toString(),
Entry::getValue));
LOGGER.info("xyMap created ");
return xyMap;
}
......
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