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

DM-30648: Add photodiode calibration class #197

Merged
merged 8 commits into from Oct 29, 2021
Merged

DM-30648: Add photodiode calibration class #197

merged 8 commits into from Oct 29, 2021

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Oct 1, 2021

Add photodiode calibration class.

python/lsst/ip/isr/photodiode.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/photodiode.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/photodiode.py Show resolved Hide resolved
python/lsst/ip/isr/photodiode.py Show resolved Hide resolved
python/lsst/ip/isr/photodiode.py Outdated Show resolved Hide resolved
python/lsst/ip/isr/photodiode.py Show resolved Hide resolved
python/lsst/ip/isr/photodiode.py Outdated Show resolved Hide resolved
Comment on lines 253 to 264
(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]
Copy link
Contributor

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...

Copy link
Contributor

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!

tests/test_photodiode.py Outdated Show resolved Hide resolved
tests/test_photodiode.py Outdated Show resolved Hide resolved
tests/test_photodiode.py Outdated Show resolved Hide resolved
@czwa czwa merged commit 54b969b into master Oct 29, 2021
@czwa czwa deleted the tickets/DM-30648 branch October 29, 2021 19:43
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.

None yet

3 participants