Skip to content
Snippets Groups Projects

NSHM Unit tests

Compare and Show latest version
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
@@ -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;
}
Loading