diff --git a/src/loci/formats/in/ZarrReader.java b/src/loci/formats/in/ZarrReader.java index 1ecc111..64c5a2e 100644 --- a/src/loci/formats/in/ZarrReader.java +++ b/src/loci/formats/in/ZarrReader.java @@ -1116,6 +1116,9 @@ private Number getDouble(Map src, String key) { if (val == null) { return null; } + if (val instanceof Integer) { + return ((Integer) val).doubleValue(); + } return val.doubleValue(); } @@ -1204,7 +1207,7 @@ public boolean quickRead() { } return QUICK_READ_DEFAULT; } - + /** * Used to decide if images stored in the label sub folder should be included in the list of images * @return boolean true if images in the label folder should be included, default is false