We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca44730 commit da64366Copy full SHA for da64366
src/mdio/converters/segy.py
@@ -509,7 +509,7 @@ def _calculate_live_mask_chunksize(grid: Grid) -> Sequence[int] | int:
509
Either a single integer (-1) if no chunking is needed, or a sequence of integers
510
representing the optimal chunk size for each dimension of the grid.
511
"""
512
- if np.sum(grid.live_mask) < INT32_MAX:
+ if grid.live_mask.nbytes < INT32_MAX:
513
# Base case where we don't need to chunk the live mask
514
return -1
515
0 commit comments