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
BUG: incoming deprecation warnings from numpy 2.5 (dev): direct mutations to array shape attributes are deprecated #19126
this PR (just merged) breaks about 150 tests throughout astropy. Some deprecations are more easily handled than others, so I'll start with the easy ones to reduce the number of failures so we can streamline the discussion where it's really needed.
At this stage even reading logs is complicated because most errors are not going away with any particular fix, so I'm hoping it'll get easier once the first salve of fixes gets in.
I've implemented a comprehensive fix for the NumPy 2.5 shape deprecation warnings. Please check out my pull request: #19179
All .shape = assignments replaced with .resize(new_shape, refcheck=False) calls across 11 source files and 2 test files. Zero deprecation warnings, full backward compatibility maintained.
Activity
neutrinoceros commentedon Jan 12, 2026
It's reached nightlies.
I get close to 900 tests failing when including scipy and pandas in the env. Only ~150 if I don't.
pllim commentedon Jan 12, 2026
Yeah, seeing the failures downstream too (e.g., Ginga). Is there something I can help to push the fixes forward? Thanks!
neutrinoceros commentedon Jan 12, 2026
At this stage even reading logs is complicated because most errors are not going away with any particular fix, so I'm hoping it'll get easier once the first salve of fixes gets in.
osasisorae commentedon Jan 18, 2026
I've implemented a comprehensive fix for the NumPy 2.5 shape deprecation warnings. Please check out my pull request: #19179
All
.shape =assignments replaced with.resize(new_shape, refcheck=False)calls across 11 source files and 2 test files. Zero deprecation warnings, full backward compatibility maintained.neutrinoceros commentedon Jan 23, 2026
All immediate failures are resolved and CI is back to green. Follow ups will be addressed from sub issues.
Human gold patch for astropy__astropy-19182
Human gold patch for astropy__astropy-19158
Human gold patch for astropy__astropy-19128