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

Bug fix for asdf cutouts with data as astropy quantity #114

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Conversation

havok2063
Copy link
Contributor

This PR fixes a bug in the asdf cutout code when the input data to the cutout was an Astropy Quantity instead of a straight numpy array. Now it accepts both and converts to a data array when writing out to the fits file.

It also now allows for the return of the cutout object for inspection.

@havok2063 havok2063 added the enhancement New feature or request label Jan 17, 2024
@havok2063 havok2063 self-assigned this Jan 17, 2024
@havok2063 havok2063 changed the title Bug Bug fix for asdf cutouts with data as astropy quantity Jan 17, 2024
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e182dd4) 94.56% compared to head (81cd46a) 94.58%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   94.56%   94.58%   +0.01%     
==========================================
  Files           9        9              
  Lines        1472     1477       +5     
==========================================
+ Hits         1392     1397       +5     
  Misses         80       80              

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

@havok2063 havok2063 merged commit 84b30ed into main Jan 19, 2024
9 checks passed
@havok2063 havok2063 deleted the asdffix branch January 19, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants