Call for feedback: API change with 'copy' arguments + numpy 2.0

15 views
Skip to first unread message

Clément Robert

unread,
Mar 11, 2024, 10:00:34 AMMar 11
to astropy-dev
Hi all,
In preparation for numpy 2.0, I've been working on making Astropy's APIs better match a
change upstream regarding the meaning of the `copy` keyword argument

For context, I've laid out the motivation and plans in https://github.com/astropy/astropy/issues/16167

Currently, the goal is to preserve strict backward compatibility for astropy 6.0.1,
but there seems to be a consensus that we need to change something in the long run, so
I'm reaching out to ask for early feedback on the current plans.

By far, the simplest approach, maintenance wise, would be to use the following
patch (proposed for astropy 6.1).
https://github.com/astropy/astropy/pull/16181

Affected APIs:
- astropy.units.Quantity
- astropy.utils.Masked
- astropy.table.Column
- astropy.table.Table
- astropy.time.Time
- astropy.coordinates.CylindricalDifferential

If you're working on any project that uses one or more of these APIs, and you're
interested in this discussion, can you please run your test suite with
numpy dev (or numpy 2.0.0b1 if it's out when you read this) + https://github.com/astropy/astropy/pull/16181 and tell us how it went ?

Feel free to share your thoughts in the PR or in https://github.com/astropy/astropy/issues/16167

Have a nice day !
Clément
Reply all
Reply to author
Forward
0 new messages