Skip to content

Commit 2bfcb61

Browse files
committed
fix read_chunk, fixes #1
1 parent a063c1e commit 2bfcb61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/dev/zarr/zarrjava/v3/Array.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ boolean chunkIsInArray(long[] chunkCoords) {
211211
@Nonnull
212212
public ucar.ma2.Array readChunk(long[] chunkCoords)
213213
throws ZarrException {
214-
if (chunkIsInArray(chunkCoords)) {
214+
if (!chunkIsInArray(chunkCoords)) {
215215
return metadata.allocateFillValueChunk();
216216
}
217217

0 commit comments

Comments
 (0)