Skip to content

Commit f169427

Browse files
committed
ensure correct type for model saving
1 parent cfdc10e commit f169427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepsensor/data/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def compute_xarray_data_resolution(ds: Union[xr.DataArray, xr.Dataset]) -> float
9191
"""
9292
x1_res = np.abs(np.mean(np.diff(ds["x1"])))
9393
x2_res = np.abs(np.mean(np.diff(ds["x2"])))
94-
data_resolution = np.min([x1_res, x2_res])
94+
data_resolution = float(np.min([x1_res, x2_res]))
9595
return data_resolution
9696

9797

0 commit comments

Comments
 (0)