From b32686255ead887605e90cd63eb20abfe418bfd5 Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Wed, 16 Oct 2024 19:53:34 +0200 Subject: [PATCH] small improvement --- .../modelrunner/bioimageio/tiling/TileMaker.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/bioimage/modelrunner/bioimageio/tiling/TileMaker.java b/src/main/java/io/bioimage/modelrunner/bioimageio/tiling/TileMaker.java index 34f24beb..26be593c 100644 --- a/src/main/java/io/bioimage/modelrunner/bioimageio/tiling/TileMaker.java +++ b/src/main/java/io/bioimage/modelrunner/bioimageio/tiling/TileMaker.java @@ -96,11 +96,11 @@ private void getOutputTiles() { .filter(t -> t.getName().equals(intt.getName())).findFirst().orElse(null); int indTile = inTile.getTileAxesOrder().indexOf(ax.getAxis()); int indIm = inTile.getImageAxesOrder().indexOf(ax.getAxis()); - if (indTile == -1 || indIm == -1) - throw new IllegalArgumentException("" - + "Model specs too complex for JDLL. " - + "Please contact the team and create and issue attaching the rdf.yaml file" - + " so we can troubleshoot at: " + Constants.ISSUES_LINK); + if (indTile == -1 || indIm == -1) { + imagSize[i] = (long) ax.getMin(); + tileSize[i] = (long) ax.getMin(); + continue; + } double factor = (double) inTile.getImageDims()[indIm] / inTile.getTileDims()[indTile]; if (Math.floor(ax.getMin() * factor) != ax.getMin() * factor) throw new IllegalArgumentException(""