Skip to content

Commit

Permalink
Merge pull request #29 from marcinofulus/patch-1
Browse files Browse the repository at this point in the history
fixed bug in fast_get
  • Loading branch information
tgandor authored Mar 9, 2023
2 parents 44c4e50 + 325f692 commit 86fccb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chunky3d/chunky.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def fast_get(

shp = grid_mask.shape

if bi > shp[0] or bj > shp[1] or bk > shp[2]:
if bi >= shp[0] or bj >= shp[1] or bk >= shp[2]:
return error_value

idx = grid_mask[bi, bj, bk]
Expand Down

0 comments on commit 86fccb5

Please sign in to comment.