Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FujiReader: ensure getCurrentFile is the first element of the used files list #4267

Merged
merged 4 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/formats-gpl/src/loci/formats/in/FujiReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public String[] getSeriesUsedFiles(boolean noPixels) {
if (noPixels) {
return new String[] {infFile};
}
return new String[] {infFile, pixelsFile};
return new String[] {pixelsFile, infFile};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While this causes the test to pass, it looks like it shifts the problem to initializing .inf files:

$ showinf -no-upgrade -nopix TPN_membraneC_1sec.inf
Checking file format [Fuji LAS 3000]
Initializing reader
FujiReader initializing TPN_membraneC_1sec.inf
Initialization took 0.179s

Reading core metadata
filename = TPN_membraneC_1sec.inf
Used files:
	/home/melissa/data/bf-data-repo/automated-tests/curated/fuji/venu/TPN_membraneC_1sec.img
	/home/melissa/data/bf-data-repo/automated-tests/curated/fuji/venu/TPN_membraneC_1sec.inf

}

/* @see loci.formats.IFormatReader#fileGroupOption(String) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,6 @@ public void testSaneUsedFiles() {
!(reader.getFormat().equals("Evotec Flex")) &&
!(reader.getFormat().equals("CellSens VSI")) &&
!(reader.getFormat().equals("PerkinElmer")) &&
!(reader.getFormat().equals("Fuji LAS 3000")) &&
!(reader.getFormat().equals("Micro-Manager")) &&
!(reader.getFormat().equals("BDV")) &&
!(reader.getFormat().equals("Zeiss AxioVision TIFF")) &&
Expand Down
Loading