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

load model

parent 3d2d3860
No related branches found
No related tags found
2 merge requests!755Production Release | nshmp-haz,!754NSHM Unit tests
......@@ -84,16 +84,14 @@ class NshmTestUtils {
* @param nshm The NSHM to test
*/
static void testNshm(Nshm nshm, Optional<Path> dataPath) {
NshmModel nshmModel = dataPath.isPresent() ? null : loadModel(nshm);
NshmModel nshmModel = loadModel(nshm);
for (NamedLocation location : nshm.locations()) {
LOGGER.info("Location: " + location.toString());
compareCurves(nshmModel, location, dataPath);
}
if (nshmModel != null) {
nshmModel.exec.shutdown();
}
nshmModel.exec.shutdown();
}
/**
......
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