From fcebaa6a88233a5bc90f36c53b4f092d2c90ae8b Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Tue, 26 Nov 2024 16:19:30 +0100 Subject: [PATCH] go back and update to be compatible with biapy --- pom.xml | 2 +- .../modelrunner/bioimageio/description/ModelDescriptorV05.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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);