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
In numpy 2.0 nightly, applying sqrt() to a fully masked scalar array undoes the mask.
numpy 1.26.3 behaves correctly.
Other ufuncs seem to behave correctly (but I haven't performed a thorough test for all of them).
Weird, I think the reason why this is so cryptic, is that something fails with a TypeError while dealing with the context, and then it succeeds when not passing it.
(Shows how try/except clauses to be forgiving are not helpful sometimes...)
Activity
seberg commentedon Jan 19, 2024
Weird, I think the reason why this is so cryptic, is that something fails with a
TypeErrorwhile dealing with thecontext, and then it succeeds when not passing it.(Shows how
try/exceptclauses to be forgiving are not helpful sometimes...)seberg commentedon Jan 19, 2024
The error seems to be:
(Although now I have to look at my other code, I didn't want to see it at this stage ;)).
ENH: Chain the original error when the deprecationwarning is raised
seberg commentedon Jan 19, 2024
OK, the problem there is the
d, which is not a valid mask (it is the float value). That seems right (not sure when/why it changed).API,MAINT: Reorganize array-wrap calling and introduce ``return_scala…
Kai-Striega commentedon Mar 8, 2024
@seberg do you think this should be possible to fix in a weekend? If so I can take a look at it this weekend :)
BUG: Ensure context path is taken in masked array array-wrap
BUG: Ensure context path is taken in masked array array-wrap
BUG: Ensure context path is taken in masked array array-wrap