diff --git a/src/loci/formats/in/ZarrReader.java b/src/loci/formats/in/ZarrReader.java index 82052df..7e756a0 100644 --- a/src/loci/formats/in/ZarrReader.java +++ b/src/loci/formats/in/ZarrReader.java @@ -187,6 +187,7 @@ protected void initFile(String id) throws FormatException, IOException { String canonicalPath = new Location(zarrRootPath).getCanonicalPath(); initializeZarrService(canonicalPath); + reloadOptionsFile(zarrRootPath+".bfoptions"); ArrayList omeSeriesOrder = new ArrayList(); if(omeMetaFile.exists()) { @@ -1094,6 +1095,7 @@ public String[] getUsedFiles(boolean noPixels) { FormatTools.assertId(currentId, true, 1); String zarrRootPath = currentId.substring(0, currentId.indexOf(".zarr") + 5); ArrayList usedFiles = new ArrayList(); + reloadOptionsFile(zarrRootPath+".bfoptions"); boolean skipPixels = noPixels || !listPixels() || !systemEnvListPixels(); boolean includeLabels = includeLabels(); @@ -1181,6 +1183,7 @@ private boolean systemEnvListPixels() { private void reloadOptionsFile(String id) { String optionsFile = DynamicMetadataOptions.getMetadataOptionsFile(id); if (optionsFile != null) { + LOGGER.error("ZarrReader loaded options file from: {}", id); MetadataOptions options = getMetadataOptions(); if (options != null && options instanceof DynamicMetadataOptions) { try {