Skip to content

Commit b89b7e6

Browse files
Merge pull request #309 from lsst/tickets/DM-47544
DM-47544: Change calcSizeResidual from (T_obs-T_psf)/T_psf to (T_obs-T_psf)/T_obs
2 parents 89f1478 + 5402ce4 commit b89b7e6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

python/lsst/analysis/tools/actions/vector/calcRhoStatistics.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,17 @@ def __call__(self, data: KeyedData, **kwargs) -> KeyedData:
215215

216216
calcSizeResidual = FractionalDifference(
217217
actionA=CalcMomentSize(
218-
colXx=self.colXx,
219-
colYy=self.colYy,
220-
colXy=self.colXy,
221-
sizeType=self.sizeType,
222-
),
223-
actionB=CalcMomentSize(
224218
colXx=self.colPsfXx,
225219
colYy=self.colPsfYy,
226220
colXy=self.colPsfXy,
227221
sizeType=self.sizeType,
228222
),
223+
actionB=CalcMomentSize(
224+
colXx=self.colXx,
225+
colYy=self.colYy,
226+
colXy=self.colXy,
227+
sizeType=self.sizeType,
228+
),
229229
)
230230

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

253253
# Scale the sizeRes by ellipticities
254254
e1SizeRes = e1 * sizeRes

0 commit comments

Comments
 (0)