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 a1b1713 commit c4b061eCopy full SHA for c4b061e
src/mdio/segy/_workers.py
@@ -27,6 +27,7 @@
27
from mdio.builder.schemas.v1.stats import CenteredBinHistogram
28
from mdio.builder.schemas.v1.stats import SummaryStatistics
29
from mdio.builder.xarray_builder import _get_fill_value
30
+from mdio.constants import fill_value_map
31
32
33
class SegyFileArguments(TypedDict):
@@ -108,7 +109,7 @@ def trace_worker( # noqa: PLR0913
108
109
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.
- not_null = local_grid_map != np.iinfo(local_grid_map.dtype).max
112
+ not_null = local_grid_map != fill_value_map.get(local_grid_map.dtype.name)
113
if not not_null.any():
114
return None
115
0 commit comments