Skip to content

Commit 773159a

Browse files
committed
Resolve pre-commit issues
1 parent dc8aa02 commit 773159a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/mdio/converters/segy.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

tests/unit/test_live_mask_chunksize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Test live mask chunk size calculation."""
22

33
import numpy as np
4-
import pytest
54

65
from mdio.constants import INT32_MAX
76
from mdio.converters.segy import _calculate_live_mask_chunksize

0 commit comments

Comments
 (0)