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-45928: add parallel CTI and add serial/parallel turnoff calculations to DeferredChargeCalib #280

Merged
merged 13 commits into from
Feb 4, 2025

Conversation

Alex-Broughton
Copy link
Contributor

No description provided.

@Alex-Broughton Alex-Broughton force-pushed the tickets/DM-45928 branch 2 times, most recently from 1f0f97f to d6cc862 Compare December 18, 2024 18:19
@Alex-Broughton Alex-Broughton force-pushed the tickets/DM-45928 branch 3 times, most recently from 28fab7f to 6fbf70c Compare January 10, 2025 01:17
@Alex-Broughton Alex-Broughton force-pushed the tickets/DM-45928 branch 4 times, most recently from 67580da to fbdd3ee Compare January 14, 2025 17:18
@Alex-Broughton Alex-Broughton force-pushed the tickets/DM-45928 branch 4 times, most recently from 7b3b1c5 to 3825f88 Compare January 28, 2025 18:55
@Alex-Broughton Alex-Broughton force-pushed the tickets/DM-45928 branch 2 times, most recently from 5b92870 to 3b40c4d Compare January 29, 2025 23:26
pipelines/LSSTComCamSim/cpCti.yaml Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Outdated Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Outdated Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Outdated Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Outdated Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Outdated Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Outdated Show resolved Hide resolved
@@ -37,153 +38,231 @@ class CpCtiSolveTaskTestCase(lsst.utils.tests.TestCase):
def setUp(self):
self.camera = IsrMock().getCamera()

Copy link
Contributor

Choose a reason for hiding this comment

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

Where did these data come from?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the originals were just empirical values I had during testing, and suspect the same of the updated values.

self.assertEqual(
calib.signals[ampName][-1] - calib.signals[ampName][-2],
calib.parallelCtiTurnoffSamplingErr[ampName],
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did the expectations come from above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added SerialOscanMeansD, which is roughly 20*SerialOscanMeansC. The code should have correctly calculated that the serial turnoff is at the signal level associated with C and the serial overscan turnoff sampling error is roughly (signal D - signal B) / 2.

I also set all the parallel overscan means to the same thing at all signal levels (which is similar to never sampling the turnoff, which is common in real data). In that case it shoul set the parallel turnoff to the last value and the parallel turnoff sampling error should be the spacing between the last value and the second-to-last value.

I can add a comment to clarify this.

pipelines/_ingredients/cpCtiLSST.yaml Outdated Show resolved Hide resolved
python/lsst/cp/pipe/cpCtiSolve.py Outdated Show resolved Hide resolved
@@ -37,153 +38,231 @@ class CpCtiSolveTaskTestCase(lsst.utils.tests.TestCase):
def setUp(self):
self.camera = IsrMock().getCamera()

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the originals were just empirical values I had during testing, and suspect the same of the updated values.

@Alex-Broughton Alex-Broughton merged commit 84eb0f6 into main Feb 4, 2025
2 checks passed
@Alex-Broughton Alex-Broughton deleted the tickets/DM-45928 branch February 4, 2025 00:56
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