File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2828from mdio .builder .schemas .v1 .stats import SummaryStatistics
2929from mdio .builder .xarray_builder import _get_fill_value
3030from mdio .constants import UINT32_MAX
31+ from mdio .constants import UINT64_MAX
3132
3233
3334class SegyFileArguments (TypedDict ):
@@ -107,7 +108,9 @@ def trace_worker( # noqa: PLR0913
107108 region_slices = tuple (region .values ())
108109 local_grid_map = grid_map [region_slices [:- 1 ]] # minus last (vertical) axis
109110
110- not_null = local_grid_map != UINT32_MAX
111+ # The dtype.max is the sentinel value for the grid map.
112+ # Normally, this is uint32, but some grids need to be promoted to uint64.
113+ not_null = local_grid_map != np .iinfo (local_grid_map .dtype ).max
111114 if not not_null .any ():
112115 return None
113116
You can’t perform that action at this time.
0 commit comments