Closed dvezinet closed 2 months ago
New error showing up in unit tests since recently, presumably due to new version of numpy or cython.
numpy
cython
The problem is specific to:
Windows
3.10
General clarification about numpy vs python int types, and differences between linux and windows interpretations (read all posts): https://stackoverflow.com/questions/21851985/difference-between-np-int-np-int-int-and-np-int-t-in-cython
python
int
linux
windows
np.asarray(..., dtype=int)
np.asarray(..., dtype=np.int_)
Test environment:
10.0.20348
Cython module (routine definition): geom/_GG.pyx
geom/_GG.pyx
Python module (run-time call): geom/_core.py
geom/_core.py
python 3.10
Overview:
New error showing up in unit tests since recently, presumably due to new version of
numpy
orcython
.The problem is specific to:
Windows
3.10
General clarification about
numpy
vspython
int
types, and differences betweenlinux
andwindows
interpretations (read all posts): https://stackoverflow.com/questions/21851985/difference-between-np-int-np-int-int-and-np-int-t-in-cythonnp.asarray(..., dtype=int)
replaced bynp.asarray(..., dtype=np.int_)
(2 instances)Details:
Test environment:
10.0.20348
DatacenterException raised:
Code parts involved:
Cython module (routine definition):
geom/_GG.pyx
Python module (run-time call):
geom/_core.py
Temporary solution:
windows
andpython 3.10
in the test matrix