Skip to content

Commit da64366

Browse files
Use number of samples instead of live samples
Co-authored-by: Altay Sansal <[email protected]>
1 parent ca44730 commit da64366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mdio/converters/segy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def _calculate_live_mask_chunksize(grid: Grid) -> Sequence[int] | int:
509509
Either a single integer (-1) if no chunking is needed, or a sequence of integers
510510
representing the optimal chunk size for each dimension of the grid.
511511
"""
512-
if np.sum(grid.live_mask) < INT32_MAX:
512+
if grid.live_mask.nbytes < INT32_MAX:
513513
# Base case where we don't need to chunk the live mask
514514
return -1
515515

0 commit comments

Comments
 (0)