Skip to content

Commit

Permalink
Move warning line into log message
Browse files Browse the repository at this point in the history
  • Loading branch information
plazas committed Jan 20, 2022
1 parent 421db89 commit 2485b0a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/lsst/cp/pipe/ptc/cpExtractPtcTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,8 @@ def run(self, inputExp, inputDims):
# the signal, variance, or covariance calculations
# from `measureMeanVarCov` resulted in NaNs.
if np.isnan(muDiff) or np.isnan(varDiff) or (covAstier is None):
msg = ("NaN mean or var, or None cov in amp %s in exposure pair %d, %d of detector %d.",
ampName, expId1, expId2, detNum)
self.log.warning(msg)
self.log.warning("NaN mean or var, or None cov in amp %s in exposure pair %d, %d of "
"detector %d.", ampName, expId1, expId2, detNum)
nAmpsNan += 1
expIdMask = False
covArray = np.full((1, self.config.maximumRangeCovariancesAstier,
Expand Down

0 comments on commit 2485b0a

Please sign in to comment.