You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when manually setting the units attribute of a DataArray containing datetime types, the error
ValueError: Failed hard to prevent overwriting key 'units'
is raised.
It would be good to allow custom units, because currently the units seem to be days since FIRST_TIMESTEP, which leads to different units for different variables within the same Dataset.
The text was updated successfully, but these errors were encountered:
We should raise a better error message. You can indeed actually customize this by setting an appropriate encoding on the DataArray, e.g., ds.time.encoding['units'] = 'hours since 1900-01-01T00
when manually setting the
units
attribute of a DataArray containing datetime types, the erroris raised.
It would be good to allow custom units, because currently the units seem to be
days since FIRST_TIMESTEP
, which leads to different units for different variables within the same Dataset.The text was updated successfully, but these errors were encountered: