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 885634b commit 7da764cCopy full SHA for 7da764c
src/mdio/core/grid.py
@@ -152,7 +152,7 @@ def _calculate_live_mask_chunksize(grid: Grid) -> Sequence[int]:
152
"""
153
try:
154
return _calculate_optimal_chunksize(grid.live_mask, INT32_MAX // 4)
155
- except:
+ except AttributeError:
156
# Create an empty array with the same shape and dtype as the live mask would have
157
empty_array = np.empty(grid.shape[:-1], dtype=np.bool_)
158
return _calculate_optimal_chunksize(empty_array, INT32_MAX // 4)
0 commit comments