Skip to content

Commit

Permalink
CellSensReader: always initialize the vsi file
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed Jan 20, 2025
1 parent fc87b10 commit 0ffd196
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,6 @@ protected ArrayList<String> getAvailableOptions() {
/* @see loci.formats.FormatReader#initFile(String) */
@Override
protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);

if (!checkSuffix(id, "vsi")) {
Location current = new Location(id).getAbsoluteFile();
Location parent = current.getParentFile();
Expand All @@ -671,9 +669,11 @@ protected void initFile(String id) throws FormatException, IOException {
throw new FormatException("Could not find .vsi file.");
}
else {
id = vsiFile.getAbsolutePath();
initFile(vsiFile.getAbsolutePath());
return;
}
}
super.initFile(id);

parser = new TiffParser(id);
ifds = parser.getMainIFDs();
Expand Down

0 comments on commit 0ffd196

Please sign in to comment.