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-39167: Improve outlier rejection in PTC fitting and add additional tests. #193

Merged
merged 11 commits into from May 18, 2023

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented May 15, 2023

This PR adds:

  • A revised implementation of the outlier rejection algorithm that correctly implements the original Digel eotest code where the initial fit is only on the lower flux points, to prevent high flux outliers from ruining the fit.
  • Additional tests of PTC dataset reordering and raw value invariance, and fixes for bugs that these tests uncovered.
  • Robustification of ks-test computation.
  • Update PTC turnoff point to be highest point after outlier rejection, and not before (following the original eotest code).

I also renamed the short-lived doLegacyTurnoffAndOutlierSelection to doLegacyTurnoffSelection because I updated the outlier rejection for both the legacy and updated versions.

@erykoff erykoff requested a review from czwa May 17, 2023 17:11
python/lsst/cp/pipe/ptc/cpSolvePtcTask.py Show resolved Hide resolved
tests/test_ptc.py Show resolved Hide resolved
tests/test_ptc.py Show resolved Hide resolved
@erykoff erykoff force-pushed the tickets/DM-39167 branch 3 times, most recently from 1f8ca46 to 61f9709 Compare May 18, 2023 15:05
@erykoff erykoff merged commit 3b71a9b into main May 18, 2023
1 check passed
@erykoff erykoff deleted the tickets/DM-39167 branch May 18, 2023 23:26
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

2 participants