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
pint.quantify() fails on a dataset opened using xr.open_mfdataset but everything works as expected when the two data sets are loaded individually with xr.open_dataset and then concatenated.
The bug is insensitive to options such as parallel and chunking. Not sure how I could debug this any further.
Thanks for the report. Your issue is decode_times=False: time coordinates have units containing a date, typically something like seconds since 2019-03-02 23:51:11. pint thinks this is an expression (2019 - 03 - 02) and tries to evaluate, only to fail because it can only parse expressions with units.
In #241 I simply told pint-xarray to ignore variables with time units. In other words, this is already fixed on main, and I'll take this issue as a reminder to issue a new release.
pint.quantify()
fails on a dataset opened usingxr.open_mfdataset
but everything works as expected when the two data sets are loaded individually withxr.open_dataset
and then concatenated.The bug is insensitive to options such as
parallel
and chunking. Not sure how I could debug this any further.Libraries
Expected behavior
quantify()
should not fail.Minimal example
The text was updated successfully, but these errors were encountered: