Skip to content

Commit

Permalink
Merge pull request #23 from melissalinkert/check-format-version
Browse files Browse the repository at this point in the history
Check the value of the "bioformats2raw.layout" attribute
  • Loading branch information
chris-allan authored May 5, 2020
2 parents bd6510d + ebb14c7 commit 5675c2d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@ public void initialize()
if (n5Reader == null) {
throw new FormatException("Could not create an N5 reader");
}
Integer layoutVersion =
n5Reader.getAttribute("/", "bioformats2raw.layout", Integer.class);
if (layoutVersion == null || layoutVersion != 1) {
throw new FormatException("Unsupported version: " + layoutVersion);
}

LOG.info("Creating tiled pyramid file {}", this.outputFilePath);

Expand Down

0 comments on commit 5675c2d

Please sign in to comment.