From d8303880bd77f3b5623dca7f5b26402c03a00a56 Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Tue, 18 Jun 2024 11:11:39 -0500 Subject: [PATCH] CV7000/8000: fix used files list when TIFFs are in a subdirectory --- .../src/loci/formats/in/CV7000Reader.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/components/formats-gpl/src/loci/formats/in/CV7000Reader.java b/components/formats-gpl/src/loci/formats/in/CV7000Reader.java index 0d2a65c707a..7ba74411d73 100644 --- a/components/formats-gpl/src/loci/formats/in/CV7000Reader.java +++ b/components/formats-gpl/src/loci/formats/in/CV7000Reader.java @@ -81,7 +81,7 @@ public class CV7000Reader extends FormatReader { // -- Fields -- - private String[] allFiles; + private List allFiles = new ArrayList(); private MinimalTiffReader reader; private String wppPath; private String detailPath; @@ -223,6 +223,7 @@ public void close(boolean fileOnly) throws IOException { reversePlaneLookup = null; extraFiles = null; acquiredWells.clear(); + allFiles.clear(); } } @@ -269,15 +270,12 @@ protected void initFile(String id) throws FormatException, IOException { XMLTools.parseXML(wpiXML, plate); Location parent = new Location(id).getAbsoluteFile().getParentFile(); - allFiles = parent.list(true); - Arrays.sort(allFiles); - for (int i=0; i