-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
bkg_spectrum to take func instead of string #255
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #255 +/- ##
==========================================
- Coverage 87.19% 87.11% -0.08%
==========================================
Files 13 13
Lines 1179 1172 -7
==========================================
- Hits 1028 1021 -7
Misses 151 151 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
If we do this, I think we'd want to mirror that in the class-level |
Where is the |
In |
Hmm... Should #253 have used this |
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.
there is a complaint about a conflict that needs resolving before we can merge. i would suggest making np.nanmedian
the default vs np.nansum
. we want a per-pixel background in most cases and the median statistic is more robust against outliers that can skew the mean. personally, i would use scipy.stats.mode
in many cases and i appreciate how this change would allow me to do so.
Update test_background.py
@tepickering , I think I have addressed your comment. But now though, this is a breaking change. Not sure if it belongs in bugfix anymore... 😬 |
Hi, I'm afraid there might be some confusion regarding the logic and intended functionality of the
If we want to change the statistic used for background estimation, we need to do it in @kecnry, you introduced bkg_spectrum in c53ea53. Can you remind us of the original use-case for the method? |
Yes, I definitely think with the past few PRs all being somewhat related that we need to make sure we have a plan for what this all means and how it fits together. I'll do some digging with @gibsongreen @cshanahan1 and some old notes and will get back to you then. |
This is a direct follow-up of unreleased feature added in #253 so behavior change can be done without deprecation or change log.
I am just wondering what it would have looked like.