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
{{ message }}
Repository navigation
Can't import with latest NumPy dev 2.4.0.dev0 #262
C:\hostedtoolcache\windows\Python\3.13.8\x64\Lib\site-packages\neo\core\spiketrain.py:24: in <module>
import quantities as pq
C:\hostedtoolcache\windows\Python\3.13.8\x64\Lib\site-packages\quantities\__init__.py:275: in <module>
from . import quantity
C:\hostedtoolcache\windows\Python\3.13.8\x64\Lib\site-packages\quantities\quantity.py:113: in <module>
class Quantity(np.ndarray):
C:\hostedtoolcache\windows\Python\3.13.8\x64\Lib\site-packages\quantities\quantity.py:632: in Quantity
@with_doc(np.ndarray.ptp)
^^^^^^^^^^^^^^
E AttributeError: type object 'numpy.ndarray' has no attribute 'ptp'
Presumably because on 2.2.6 you get this warning
>>> import numpy as np
>>> np.ndarray.ptp
<attribute 'ptp' of 'numpy.ndarray' objects>
>>> x = np.arange(10)
>>> x.ptp()
Traceback (most recent call last):
File "<python-input-4>", line 1, in <module>
x.ptp()
^^^^^
AttributeError: `ptp` was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.
and now they've decided in 2.4.0.dev0 to actually remove it entirely.
Activity