@@ -160,7 +160,7 @@ class ToScalarZarr3OutputTest {
160160 .count { it.isFile && it.name != " zarr.json" }
161161 assertEquals(1 , shardFiles)
162162
163- /* the 3 skipped shards read back as the fill value (0); the one voxel round-trips */
163+ /* the 3 skipped shards read back as the fill value (0); the one voxel reads back unchanged */
164164 val reader = createReader(outputPath)
165165 LoopBuilder .setImages(sparseImg, N5Utils .open<UnsignedLongType >(reader, outputDataset))
166166 .forEachPixel(BiConsumer { e: UnsignedLongType , a: UnsignedLongType -> assertTrue(e.valueEquals(a)) })
@@ -196,7 +196,7 @@ class ToScalarZarr3OutputTest {
196196 @Test
197197 fun `to-scalar sharded zarr3 keeps within-shard chunk sparsity` () {
198198 /* one whole shard of 2x2x2 chunks (block 3, chunks-per-shard 2 -> shard 6); chunk (1,1,1) is all fill (0)
199- * while the other seven carry data, so the shard is written but that chunk must be omitted, not materialized */
199+ * while the other seven hold data, so the shard is written but that chunk must be omitted, not written out */
200200 val chunkDims = longArrayOf(6 , 6 , 6 )
201201 val img = ArrayImgs .unsignedLongs(LongArray ((6 * 6 * 6 )) { 7L }, * chunkDims)
202202 val ra = img.randomAccess()
@@ -230,7 +230,7 @@ class ToScalarZarr3OutputTest {
230230 assertNull(reader.readChunk<LongArray >(outputDataset, attrs, * longArrayOf(1 , 1 , 1 )), " all-fill inner chunk should be omitted" )
231231 assertNotNull(reader.readChunk<LongArray >(outputDataset, attrs, * longArrayOf(0 , 0 , 0 )), " data inner chunk should be present" )
232232
233- /* and it still round-trips: the omitted chunk reads back as fill 0 */
233+ /* the omitted chunk still reads back as fill 0 */
234234 LoopBuilder .setImages(img, N5Utils .open<UnsignedLongType >(reader, outputDataset))
235235 .forEachPixel(BiConsumer { e: UnsignedLongType , a: UnsignedLongType -> assertTrue(e.valueEquals(a)) })
236236 }
0 commit comments