Skip to content

Commit

Permalink
Merge pull request #57 from chris-allan/nested-check
Browse files Browse the repository at this point in the history
Fix nested support and add test case
  • Loading branch information
chris-allan authored Apr 12, 2021
2 parents 55881d1 + 6971a02 commit 919586c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repositories {
}

dependencies {
implementation 'com.bc.zarr:jzarr:0.3.2'
implementation 'com.bc.zarr:jzarr:0.3.3-gs-SNAPSHOT'
implementation 'info.picocli:picocli:4.2.0'
implementation 'me.tongfei:progressbar:0.9.0'
implementation 'ome:formats-bsd:6.4.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
import java.util.List;
import java.util.Map;

import com.bc.zarr.ZarrArray;
import com.bc.zarr.ZarrGroup;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.glencoesoftware.bioformats2raw.Converter;
import com.glencoesoftware.pyramid.PyramidFromDirectoryWriter;

Expand Down Expand Up @@ -240,6 +244,13 @@ public void testDefaults() throws Exception {
input = fake();
assertBioFormats2Raw();
assertTool();
ZarrArray series0 = ZarrGroup.open(output.resolve("0")).openArray("0");
Assert.assertTrue(series0.getNested());
// Also ensure we're using the latest .zarray metadata
ObjectMapper objectMapper = new ObjectMapper();
JsonNode root = objectMapper.readTree(
output.resolve("0/0/.zarray").toFile());
Assert.assertEquals("/", root.path("dimension_separator").asText());
try (ImageReader reader = new ImageReader()) {
reader.setFlattenedResolutions(false);
reader.setId(outputOmeTiff.toString());
Expand Down

0 comments on commit 919586c

Please sign in to comment.