We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13b7861 commit dd90a06Copy full SHA for dd90a06
1 file changed
omf/fileio/geoh5.py
@@ -555,7 +555,7 @@ def collect_attributes(
555
ndvs = np.isnan(values)
556
557
if np.allclose(
558
- values[~ndvs].astype(np.int32), values[~ndvs], atol=1e-45
+ values[~ndvs].astype(np.int32), values[~ndvs], atol=2e-45
559
):
560
values[ndvs] = INTEGER_NDV
561
values = values.astype(np.int32)
@@ -566,7 +566,7 @@ def collect_attributes(
566
values = getattr(element, "values", None)
567
568
if np.issubdtype(values.dtype, np.floating):
569
- values[np.isclose(values, FLOAT_NDV, atol=1e-45)] = np.nan
+ values[np.isclose(values, FLOAT_NDV, atol=2e-45)] = np.nan
570
else:
571
# Convert to float with nan as no-data value not supporter by OMF
572
ndvs = np.isclose(values, INTEGER_NDV)
0 commit comments