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

Fix for issue #240 #243

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Fix for issue #240 #243

merged 2 commits into from
Feb 5, 2025

Conversation

hpparvi
Copy link
Contributor

@hpparvi hpparvi commented Jan 17, 2025

This PR fixes issue #240, where Horne extraction would crash if the 2D spectrum contained an all-nan column.

@hpparvi hpparvi requested a review from cshanahan1 January 17, 2025 17:09
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.39%. Comparing base (e0ac82a) to head (a361185).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #243      +/-   ##
==========================================
+ Coverage   85.38%   85.39%   +0.01%     
==========================================
  Files          13       13              
  Lines        1177     1178       +1     
==========================================
+ Hits         1005     1006       +1     
  Misses        172      172              

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

@camipacifici
Copy link

Fixed the problem for me. Thanks!

@hpparvi hpparvi requested a review from tepickering January 17, 2025 18:16
@hpparvi hpparvi self-assigned this Jan 30, 2025
Copy link
Member

@kecnry kecnry left a comment

Choose a reason for hiding this comment

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

Thanks - code changes look reasonable to me!


Fits an 1D Gaussian profile to spectrum in `img`. Takes the weighted mean
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Fits an 1D Gaussian profile to spectrum in `img`. Takes the weighted mean
Fits a 1D Gaussian profile to spectrum in `img`. Takes the weighted mean

@hpparvi hpparvi merged commit e5be994 into astropy:main Feb 5, 2025
12 checks passed
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.

3 participants