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-24756: Make sigma clipping configurable in PTC task #37
Conversation
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.
Minor naming disagreement.
python/lsst/cp/pipe/ptc.py
Outdated
@@ -145,6 +145,11 @@ class MeasurePhotonTransferCurveTaskConfig(pexConfig.Config): | |||
doc="Sigma cut for outlier rejection in PTC.", | |||
default=5.0, | |||
) | |||
sigmaCutAfwMathStatsControl = pexConfig.Field( |
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.
This should probably be called somethingNumSigmaClip, so it's clear what the clipping is being applied to (the "something") and so it matches the name of the property set in the statsControl object.
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.
nSigmaClipPtc
would, I think, be in keeping with our namings elsewhere.
python/lsst/cp/pipe/ptc.py
Outdated
@@ -145,6 +145,11 @@ class MeasurePhotonTransferCurveTaskConfig(pexConfig.Config): | |||
doc="Sigma cut for outlier rejection in PTC.", | |||
default=5.0, | |||
) | |||
sigmaCutAfwMathStatsControl = pexConfig.Field( | |||
dtype=float, | |||
doc="Sigma cut for afwMatch.StatisticsControl()", |
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.
Typo I think: Match vs Math.
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 changed the name of the parameter to nSigmaClipPtc
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.
...but I did fix the typo in the docstring, thanks!
python/lsst/cp/pipe/ptc.py
Outdated
sigmaCutAfwMathStatsControl = pexConfig.Field( | ||
dtype=float, | ||
doc="Sigma cut for afwMatch.StatisticsControl()", | ||
default=3.0, |
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.
Can we change this to 5.5 please?
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.
On None
and use the default if not set
No description provided.