diff --git a/src/loci/formats/in/ZarrReader.java b/src/loci/formats/in/ZarrReader.java index 32c777c..7ff44a2 100644 --- a/src/loci/formats/in/ZarrReader.java +++ b/src/loci/formats/in/ZarrReader.java @@ -191,7 +191,7 @@ protected void initFile(String id) throws FormatException, IOException { Location omeMetaFile = new Location( zarrRootPath + File.separator + "OME", "METADATA.ome.xml" ); String canonicalPath = new Location(zarrRootPath).getCanonicalPath(); - initializeZarrService(canonicalPath); + initializeZarrService(); reloadOptionsFile(zarrRootPath); ArrayList omeSeriesOrder = new ArrayList(); @@ -462,14 +462,14 @@ private static int[] getOriginalShape(int [] shape5D, int size) { public void reopenFile() throws IOException { try { String canonicalPath = new Location(currentId).getCanonicalPath(); - initializeZarrService(canonicalPath); + initializeZarrService(); } catch (FormatException e) { throw new IOException(e); } } - protected void initializeZarrService(String rootPath) throws IOException, FormatException { + protected void initializeZarrService() throws IOException, FormatException { zarrService = new JZarrServiceImpl(altStore()); openZarr(); }