File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ def segy_to_mdio( # noqa: C901
171171 Default is `None` (will assume anonymous)
172172 overwrite: Toggle for overwriting existing store
173173 grid_overrides: Option to add grid overrides. See examples.
174+
174175 Raises:
175176 GridTraceCountError: Raised if grid won't hold all traces in the
176177 SEG-Y file.
@@ -503,6 +504,10 @@ def _calculate_live_mask_chunksize(grid: Grid) -> Sequence[int] | int:
503504
504505 Args:
505506 grid: The grid to calculate the chunksize for.
507+
508+ Returns:
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.
506511 """
507512 if np .sum (grid .live_mask ) < INT32_MAX :
508513 # Base case where we don't need to chunk the live mask
Original file line number Diff line number Diff line change 11"""Test live mask chunk size calculation."""
22
33import numpy as np
4- import pytest
54
65from mdio .constants import INT32_MAX
76from mdio .converters .segy import _calculate_live_mask_chunksize
You can’t perform that action at this time.
0 commit comments