cta-observatory / ctapipe

Low-level data processing pipeline software for CTAO or similar arrays of Imaging Atmospheric Cherenkov Telescopes
https://ctapipe.readthedocs.org
BSD 3-Clause "New" or "Revised" License
64 stars 268 forks source link

Add support for numpy 2.0 #2580

Closed maxnoe closed 1 month ago

maxnoe commented 3 months ago

Core dependency tables does not yet support numpy 2.0, see https://github.com/PyTables/PyTables/issues/1172

maxnoe commented 1 month ago

The remaining test failures are all due to the changed behavior of copy=False, which with numpy 2.0 now errors when the copy cannot be avoided.

This needs to be replaced with copy=None, astropy has a COPY_AS_NEEDED that is None if running under numpy 2.0 and False for earlier numpy versions, I'll add this here as well.