Skip to content

Commit

Permalink
fix read_chunk, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Mar 13, 2024
1 parent a063c1e commit 2bfcb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/zarr/zarrjava/v3/Array.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ boolean chunkIsInArray(long[] chunkCoords) {
@Nonnull
public ucar.ma2.Array readChunk(long[] chunkCoords)
throws ZarrException {
if (chunkIsInArray(chunkCoords)) {
if (!chunkIsInArray(chunkCoords)) {
return metadata.allocateFillValueChunk();
}

Expand Down

0 comments on commit 2bfcb61

Please sign in to comment.