Skip to content

Make broadcast PixCoord arrays writeable - #710

Merged
larrybradley merged 2 commits into
astropy:mainfrom
larrybradley:pixcoord-numpy26-readonly
Oct 2, 2026
Merged

larrybradley merged 2 commits into
astropy:mainfrom
larrybradley:pixcoord-numpy26-readonly

Conversation

@larrybradley

Copy link
Copy Markdown
Member

When the x and y inputs have different shapes, PixCoord now copies the broadcast views. The stored arrays are then writeable and do not share memory with the inputs or between elements. Previously they were read-only with numpy 2.6 and emitted a FutureWarning on write with older numpy versions.

This will fix the failing devdep CI tests.

@larrybradley larrybradley added this to the 0.13 milestone Oct 2, 2026
@larrybradley
larrybradley merged commit 464e705 into astropy:main Oct 2, 2026
26 of 29 checks passed
@larrybradley
larrybradley deleted the pixcoord-numpy26-readonly branch October 2, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant