Skip to content

Commit

Permalink
Merge pull request #56 from chris-allan/layout-version-3
Browse files Browse the repository at this point in the history
Update expected layout version from 2 to 3
  • Loading branch information
chris-allan authored Apr 12, 2021
2 parents f227a45 + 379127a commit 07759de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private Path getMetadataFile() {
* @return Path representing the expected OME-XML metadata file
*/
private Path getOMEXMLFile() {
return getZarr().resolve(OMEXML_FILE);
return getZarr().resolve("OME").resolve(OMEXML_FILE);
}

/**
Expand Down Expand Up @@ -584,7 +584,7 @@ public void initialize()
if (layoutVersion == null) {
LOG.warn("Layout version not recorded; may be unsupported");
}
else if (layoutVersion != 2) {
else if (layoutVersion != 3) {
throw new FormatException("Unsupported version: " + layoutVersion);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ void assertBioFormats2Raw(String...additionalArgs) throws IOException {
converter = new Converter();
CommandLine.call(converter, args.toArray(new String[]{}));
Assert.assertTrue(Files.exists(output.resolve(".zattrs")));
Assert.assertTrue(Files.exists(output.resolve("METADATA.ome.xml")));
Assert.assertTrue(Files.exists(
output.resolve("OME").resolve("METADATA.ome.xml")));
}
catch (RuntimeException rt) {
throw rt;
Expand Down

0 comments on commit 07759de

Please sign in to comment.