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

Handle GWCS for specutils 2.0 compatibility #100

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

rosteen
Copy link
Contributor

@rosteen rosteen commented Feb 26, 2024

Adding better handling of GWCS in the Spectrum1D handler. Opening as draft since this may need a couple other changes/additions, and because it shouldn't be merged until specutils 2.0 is ready for release. I'll also add some test coverage for the new code.

Copy link

codecov bot commented Feb 26, 2024

Codecov Report

Attention: Patch coverage is 21.95122% with 32 lines in your changes are missing coverage. Please review.

Project coverage is 86.73%. Comparing base (aa305d7) to head (def40d3).
Report is 3 commits behind head on main.

❗ Current head def40d3 differs from pull request most recent head 262e98d. Consider uploading reports for the commit 262e98d to get more accurate results

Files Patch % Lines
glue_astronomy/translators/spectrum1d.py 21.95% 32 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
- Coverage   96.68%   86.73%   -9.96%     
==========================================
  Files          18       16       -2     
  Lines        1448     1470      +22     
==========================================
- Hits         1400     1275     -125     
- Misses         48      195     +147     

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

setup.cfg Outdated
@@ -20,7 +20,7 @@ install_requires =
astropy>=4.0
glue-core>=1.6.1
regions>=0.4
specutils>=0.7
specutils>=2.0
Copy link
Contributor

Choose a reason for hiding this comment

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

This pin causes this branch refusing to install because specutils is still at 2.0.dev that is technically less than 2.0 stable.

setup.cfg Outdated Show resolved Hide resolved
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