Skip to content

Commit 2a5686c

Browse files
committed
Make code match comments - use 64bit float
1 parent 392a614 commit 2a5686c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/coding/variables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _choose_float_dtype(dtype, has_offset):
237237
# Sensitivity analysis can be tricky, so we just use a float64
238238
# if there's any offset at all - better unoptimised than wrong!
239239
if not has_offset:
240-
return np.float32
240+
return np.float64
241241
# For all other types and circumstances, we just use float64.
242242
# (safe because eg. complex numbers are not supported in NetCDF)
243243
return np.float64

0 commit comments

Comments
 (0)