Skip to content

Commit

Permalink
change calcSizeResidual from (T_obs-T_psf)/T_psf to (T_obs-T_psf)/T_obs
Browse files Browse the repository at this point in the history
  • Loading branch information
cahebert committed Nov 19, 2024
1 parent 428eb07 commit 2379071
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions python/lsst/analysis/tools/actions/vector/calcRhoStatistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,17 @@ def __call__(self, data: KeyedData, **kwargs) -> KeyedData:

calcSizeResidual = FractionalDifference(
actionA=CalcMomentSize(
colXx=self.colXx,
colYy=self.colYy,
colXy=self.colXy,
sizeType=self.sizeType,
),
actionB=CalcMomentSize(
colXx=self.colPsfXx,
colYy=self.colPsfYy,
colXy=self.colPsfXy,
sizeType=self.sizeType,
),
actionB=CalcMomentSize(
colXx=self.colXx,
colYy=self.colYy,
colXy=self.colXy,
sizeType=self.sizeType,
),
)

# distortion-type ellipticity has a shear response of 2, so we need to
Expand All @@ -248,7 +248,7 @@ def __call__(self, data: KeyedData, **kwargs) -> KeyedData:
eRes = calcEDiff(data, **kwargs)
eRes /= responsitivity # type: ignore
e1Res, e2Res = np.real(eRes), np.imag(eRes)
sizeRes = calcSizeResidual(data, **kwargs)
sizeRes = -1 * calcSizeResidual(data, **kwargs) # sign flip residual to T_psf - T_model

# Scale the sizeRes by ellipticities
e1SizeRes = e1 * sizeRes
Expand Down

0 comments on commit 2379071

Please sign in to comment.