From 8f430e2615e9d7803e20466298dabd54cab9e51c Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Tue, 8 Feb 2022 08:54:56 -0600 Subject: [PATCH] Don't set _ARRAY_DIMENSIONS attribute --- .../bioformats2raw/Converter.java | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java b/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java index b05099c9..ae0f4674 100644 --- a/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java +++ b/src/main/java/com/glencoesoftware/bioformats2raw/Converter.java @@ -1220,8 +1220,7 @@ public void saveResolutions(int series) .nested(nested) .compressor(CompressorFactory.create( compressionType.toString(), compressionProperties)); - ZarrArray.create(getRootPath().resolve(resolutionString), - arrayParams, getArrayAttributes()); + ZarrArray.create(getRootPath().resolve(resolutionString), arrayParams); nTile = new AtomicInteger(0); tileCount = (int) Math.ceil((double) scaledWidth / tileWidth) @@ -1794,28 +1793,6 @@ private Class getBaseReaderClass() throws FormatException, IOException { } } - private Map getArrayAttributes() throws InterruptedException { - Map attrs = new HashMap(); - String order = null; - if (dimensionOrder != null) { - order = dimensionOrder.toString(); - } - else { - IFormatReader reader = readers.take(); - try { - order = reader.getDimensionOrder(); - } - finally { - readers.put(reader); - } - } - - String[] axes = - new StringBuilder(order.toLowerCase()).reverse().toString().split(""); - attrs.put("_ARRAY_DIMENSIONS", axes); - return attrs; - } - /** * Check if the given metadata object contains at least one plate * with at least one well that links to an image.