File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2727from mdio .builder .schemas .v1 .stats import CenteredBinHistogram
2828from mdio .builder .schemas .v1 .stats import SummaryStatistics
2929from mdio .builder .xarray_builder import _get_fill_value
30- from mdio .constants import UINT32_MAX
30+ from mdio .constants import fill_value_map
3131
3232
3333class SegyFileArguments (TypedDict ):
@@ -107,7 +107,9 @@ def trace_worker( # noqa: PLR0913
107107 region_slices = tuple (region .values ())
108108 local_grid_map = grid_map [region_slices [:- 1 ]] # minus last (vertical) axis
109109
110- not_null = local_grid_map != UINT32_MAX
110+ # The dtype.max is the sentinel value for the grid map.
111+ # Normally, this is uint32, but some grids need to be promoted to uint64.
112+ not_null = local_grid_map != fill_value_map .get (local_grid_map .dtype .name )
111113 if not not_null .any ():
112114 return None
113115
You can’t perform that action at this time.
0 commit comments