Closed Czaki closed 2 years ago
I'm confused about this... The previous calls of np.equal.reduce
are passing?
Also, I cannot reproduce with my files. What PDB are you using? Is there something odd with model
info?
files from pdb database for example: 3mht. I will try to provide more detailed information after 2PM. I have a seminar now.
My bad, I had messed up a bit my environment; I can reproduce with other files as well!
This sounds like a bug in numpy honestly. This works on 1.21.5
:
In [13]: np.equal.reduce([0, 1])
Out[13]: False
In [14]: np.equal.reduce([0, 0])
Out[14]: True
But fails on 1.22
. It seems that np.equal.reduce
now only works with object
dtype. That can't be right, right?
But fails on
1.22
. It seems thatnp.equal.reduce
now only works withobject
dtype. That can't be right, right?
it works also with a boolean numpy array. Maybe it is a bug in NumPy, but I do not find a proper issue so I'm not sure.
There are two options. Try to work around this or mark this extension as incompatible with this version of NumPy.
EDIT. And your testing environment on GitHub actions is failing because of this error.
I filed a bug, let's see what they say. numpy/numpy#20929
Turns out I was just using reduce
wrong, and this numpy update made it clear. Fixed in v0.1.2
, just published!
When try use this plugin with te newest numpy version (1.22.1) it fail to load file with error:
Tested on stable and repository version. Downgrade to 1.21.5 solve this problem.