Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update copy usage in Quantity converter to deal with astropy 6.1 changes #224

Merged
merged 5 commits into from
Apr 5, 2024

Conversation

braingram
Copy link
Contributor

@braingram braingram commented Apr 4, 2024

astropy 6.1 changed the behavior of copy:
astropy/astropy#16198

This breaks the Quantity converter and was not caught due to the devdeps testing against astropy "nightlies" which haven't been updated.

This PR adds a version check against numpy since that is the core source of the error (it looks like astropy will just pass es through copy to array instead of selectively calling asarray).

This PR also updates the CI to:

  • remove astropy and transform 'lts' testing since 'lts' no longer exists
  • adds a predeps job that runs against pre-releases

The masked array failure in the predeps should be fixed by:
asdf-format/asdf#1769
which has not yet been released.

@braingram braingram changed the title build astropy in devdeps Update copy usage in Quantity converter to deal with astropy 6.1 changes Apr 4, 2024
Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.94%. Comparing base (3232abb) to head (ae5c088).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
- Coverage   98.63%   97.94%   -0.69%     
==========================================
  Files          54       54              
  Lines        2044     2046       +2     
==========================================
- Hits         2016     2004      -12     
- Misses         28       42      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nden nden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@braingram braingram merged commit 80a5845 into astropy:main Apr 5, 2024
20 of 22 checks passed
@braingram braingram deleted the copy_change branch April 5, 2024 15:34
braingram added a commit to braingram/asdf-astropy that referenced this pull request Apr 5, 2024
Update `copy` usage in `Quantity` converter to deal with astropy 6.1 changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants