Skip to content

Commit

Permalink
ensure correct type for model saving
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwilby committed Dec 13, 2024
1 parent cfdc10e commit f169427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepsensor/data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def compute_xarray_data_resolution(ds: Union[xr.DataArray, xr.Dataset]) -> float
"""
x1_res = np.abs(np.mean(np.diff(ds["x1"])))
x2_res = np.abs(np.mean(np.diff(ds["x2"])))
data_resolution = np.min([x1_res, x2_res])
data_resolution = float(np.min([x1_res, x2_res]))
return data_resolution


Expand Down

0 comments on commit f169427

Please sign in to comment.