Skip to content

Commit

Permalink
Add parameter nIterSigmaClipPtc
Browse files Browse the repository at this point in the history
  • Loading branch information
plazas committed May 13, 2020
1 parent c37e90b commit 92a6008
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/lsst/cp/pipe/ptc.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,14 @@ class MeasurePhotonTransferCurveTaskConfig(pexConfig.Config):
)
nSigmaClipPtc = pexConfig.Field(
dtype=float,
doc="Sigma cut for afwMatch.StatisticsControl()",
doc="Sigma cut for afwMath.StatisticsControl()",
default=5.5,
)
nIterSigmaClipPtc = pexConfig.Field(
dtype=int,
doc="Number of sigma-clipping iterations for afwMath.StatisticsControl()",
default=1,
)
maxIterationsPtcOutliers = pexConfig.Field(
dtype=int,
doc="Maximum number of iterations for outlier rejection in PTC.",
Expand Down Expand Up @@ -541,6 +546,7 @@ def measureMeanVarPair(self, exposure1, exposure2, region=None):

statsCtrl = afwMath.StatisticsControl()
statsCtrl.setNumSigmaClip(self.config.nSigmaClipPtc)
statsCtrl.setNumIter(self.config.nIterSigmaClipPtc)
# Clipped mean of images; then average of mean.
mu1 = afwMath.makeStatistics(im1Area, afwMath.MEANCLIP, statsCtrl).getValue()
mu2 = afwMath.makeStatistics(im2Area, afwMath.MEANCLIP, statsCtrl).getValue()
Expand Down

0 comments on commit 92a6008

Please sign in to comment.