diff --git a/pom.xml b/pom.xml index 44af9d37..0cdb2452 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.scijava pom-scijava - 38.0.1 + 37.0.0 diff --git a/src/main/java/io/bioimage/modelrunner/bioimageio/description/ModelDescriptorV05.java b/src/main/java/io/bioimage/modelrunner/bioimageio/description/ModelDescriptorV05.java index 9b8d2f7f..7a5c8dfa 100644 --- a/src/main/java/io/bioimage/modelrunner/bioimageio/description/ModelDescriptorV05.java +++ b/src/main/java/io/bioimage/modelrunner/bioimageio/description/ModelDescriptorV05.java @@ -180,6 +180,8 @@ protected void buildModelDescription() throws ModelSpecsException if (modelID == null) { modelID = findID(yamlElements); } + if (localModelPath != null && modelID == null) + return; if (modelID.length() - modelID.replace("/", "").length() >= 2 && modelID.substring(modelID.indexOf("/") + 1).indexOf("/") - modelID.indexOf("/") > 2 ) modelID = modelID.substring(0, modelID.indexOf("/") + modelID.substring(modelID.indexOf("/") + 1).indexOf("/") + 1);