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
DescriptorArray construction requires NumPy >= 2.1 (np.astype) while numpy is unpinned #276
descriptor_array.py:66,77 uses the free function np.astype(value, 'float'), which exists only in NumPy >= 2.1. pyproject.toml leaves numpy unpinned, and older NumPy is common with pinned scipp stacks — there, constructing anyDescriptorArray raises AttributeError: module 'numpy' has no attribute 'astype'.
Fix: use value.astype('float') (already the spelling elsewhere in the same file, e.g. line 215), and/or add a minimal numpy version floor in pyproject.toml.
Activity