Skip to content

Commit 15de519

Browse files
committed
Clean tests up
1 parent 5b678f2 commit 15de519

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

tests/unit/test_auto_chunking.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,6 @@ def test_large_3d_grid_chunking():
7676
assert result == (750, 750, 750)
7777

7878

79-
def test_uneven_dimensions_chunking():
80-
"""Test exact chunk size calculation for uneven dimensions."""
81-
# Create a grid with uneven dimensions that exceeds INT32_MAX
82-
# Using 50,000 x 50,000 = 2,500,000,000 elements (exceeds INT32_MAX)
83-
# But with uneven chunking: 50,000 x 25,000
84-
dims = [
85-
Dimension(coords=range(0, 50000, 1), name="dim1"),
86-
Dimension(coords=range(0, 50000, 1), name="dim2"),
87-
Dimension(coords=range(0, 100, 1), name="sample"),
88-
]
89-
grid = Grid(dims=dims)
90-
grid.live_mask = MockArray((50000, 50000), bool)
91-
92-
result = _calculate_live_mask_chunksize(grid)
93-
assert result == (25000, 25000)
94-
95-
9679
def test_prestack_land_survey_chunking():
9780
"""Test exact chunk size calculation for a dense pre-stack land survey grid."""
9881
# Create a dense pre-stack land survey grid that exceeds INT32_MAX
@@ -186,7 +169,7 @@ def test_primes():
186169
assert result == (4, 4)
187170

188171

189-
def test_altay():
172+
def test_grid_gambit():
190173
"""Test various chunk size scenarios with different array dimensions."""
191174
from mdio.constants import INT32_MAX
192175

0 commit comments

Comments
 (0)