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
DM-30648: Add photodiode calibration class #197
Conversation
python/lsst/ip/isr/photodiode.py
Outdated
(q25, q50, q75) = np.nanpercentile(np.log10(self.currentSamples[good]), [25, 50, 75]) | ||
|
||
good = np.where(np.abs(np.log10(self.currentSamples[good]) - q50) < 3.0 * 0.74 * (q75 - q25)) | ||
|
||
current = self.currentSamples[good] | ||
time = self.timeSamples[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.
It's late and I haven't made a toy to test, but I'm uneasy about how robust this is. Let me play with this on Monday...
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.
I just remembered about this toy I was going to make. I just tried, and let's just say I need a :rubber-duck:, so please don't merge until I resolve my internal squabbling at least!
5d9246d
to
39c664a
Compare
39c664a
to
c63b2bf
Compare
Add photodiode calibration class.