File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ commands:
98
98
parameters :
99
99
numpy_version :
100
100
type : string
101
- default : " ~=2.0.0 "
101
+ default : " "
102
102
steps :
103
103
- run :
104
104
name : Install Python dependencies
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ dependencies:
18
18
- kiwisolver>=1.3.1
19
19
- pybind11>=2.13.2
20
20
- meson-python>=0.13.1
21
- - numpy<2.1
21
+ - numpy
22
22
- pillow>=9
23
23
- pkg-config
24
24
- pygobject
Original file line number Diff line number Diff line change @@ -193,6 +193,11 @@ def get_unit(self):
193
193
194
194
195
195
class BasicUnit :
196
+ # numpy scalars convert eager and np.float64(2) * BasicUnit('cm')
197
+ # would thus return a numpy scalar. To avoid this, we increase the
198
+ # priority of the BasicUnit.
199
+ __array_priority__ = np .float64 (0 ).__array_priority__ + 1
200
+
196
201
def __init__ (self , name , fullname = None ):
197
202
self .name = name
198
203
if fullname is None :
You can’t perform that action at this time.
0 commit comments