Closed mikapfl closed 1 year ago
that's great thanks
Could you mark the failing tests as xfail with a message saying they were broken by changes in pint 0.21?
One test (in two configurations) is also failing with Pint 0.20.1, and seems to be related to an error within pandas when using masked arrays? See details for a traceback.
I'm looking into it, but I'm not sure I'll be able to understand what is happening.
Even this fails, also with pandas==1.5.3 and Pint==0.20.1:
In [2]: import pint_pandas
In [3]: import pandas as pd
In [4]: a = pd.Series([1.,2.,3.], dtype="pint[m]")
In [5]: a.sum()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Traceback:
OK I'm not sure what's causing those. The last versions working were pandas 1.5.2 and pint 0.20.1 https://github.com/hgrecco/pint-pandas/actions/runs/4913208352/jobs/8773118128?pr=173#logs
Could you xfail that test with a different message?
Could you xfail that test with a different message?
I'll do that, thanks for checking. I'll have time for this tomorrow, hopefully.
The failing tests are pretty substantial, though. Basically all arithmetic is broken.
bors r+
bos r+
Hi,
this fixes importing with Pint 0.21 as discussed in #168.
pre-commit run --all-files
with no errorsNot all unit tests pass because Pint 0.21 changed other things, but at least the unit tests can be executed.
Cheers,
Mika