Skip to content

Commit 4e0b451

Browse files
committed
Make numpy 2.0 compatible
1 parent 35ab5e8 commit 4e0b451

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

uncertainties/unumpy/core.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
# 3rd-party modules:
2222
import numpy
23-
from numpy.core import numeric
2423

2524
# Local modules:
2625
import uncertainties.umath_core as umath_core
@@ -585,10 +584,10 @@ def __rmul__(self, other):
585584
# scalar and of a matrix containing objects (when the
586585
# arguments are given in this order). We go around this
587586
# limitation:
588-
if numeric.isscalar(other):
589-
return numeric.dot(self, other)
587+
if numpy.isscalar(other):
588+
return numpy.dot(self, other)
590589
else:
591-
return numeric.dot(other, self) # The order is important
590+
return numpy.dot(other, self) # The order is important
592591

593592
def getI(self):
594593
"""Matrix inverse or pseudo-inverse."""

0 commit comments

Comments
 (0)