-
Notifications
You must be signed in to change notification settings - Fork 75
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 radial profile fitting when NaN in data #3246
Conversation
calculations for radial profile fit
phot_plugin.vue_do_aper_phot() | ||
tbl = imviz_helper.get_aperture_photometry_results() | ||
|
||
assert phot_plugin.result_failed_msg == '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails as such on main
without this patch:
> assert phot_plugin.result_failed_msg == ''
E assert "Aperture pho...infeasible.')" == ''
E
E + Aperture photometry failed: ValueError('`x0` is infeasible.')
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3246 +/- ##
=======================================
Coverage 88.63% 88.63%
=======================================
Files 125 125
Lines 18779 18779
=======================================
Hits 16644 16644
Misses 2135 2135 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reproduced the error on main, and i tested your branch and this fixes it. looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love when things are simple! Thanks!
Thanks for reviews! |
…6-on-v4.0.x Backport PR #3246 on branch v4.0.x (BUG: Fix radial profile fitting when NaN in data)
* BUG: Exclude NaNs in max and mean calculations for radial profile fit * TST: Add test that fails without this patch * Add change log * move import up
Description
This pull request is to address profile fitting crashing when NaN is within aperture data.
Change log entry
CHANGES.rst
? If you want to avoid merge conflicts,list the proposed change log here for review and add to
CHANGES.rst
before merge. If no, maintainershould add a
no-changelog-entry-needed
label.Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.