Closed aaschwanden closed 2 months ago
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 asparallel
and chunking. Not sure how I could debug this any further.Libraries
Expected behavior
quantify()
should not fail.Minimal example