Skip to content

Commit

Permalink
FIX: Fix for new xarray check for dtype.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Feb 23, 2024
1 parent c32dca1 commit 2d1a52f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions act/io/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,9 @@ def write_netcdf(
]
)

if 'time_bounds' in encoding.keys():
encoding['time_bounds']['dtype'] = 'float64'

if hasattr(write_ds, 'time_bounds') and not write_ds.time.encoding:
write_ds.time.encoding.update(write_ds.time_bounds.encoding)

Expand Down

0 comments on commit 2d1a52f

Please sign in to comment.