Skip to content

Commit

Permalink
Add test case for nested
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-allan committed Apr 12, 2021
1 parent 388fd6a commit 6971a02
Showing 1 changed file with 11 additions and 0 deletions.
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 6971a02

Please sign in to comment.