Skip to content

Commit

Permalink
revert earlier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Apr 22, 2024
1 parent 833d279 commit 6c7019e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions python/lsst/meas/base/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,20 +720,15 @@ def __init__(self, config, name, schema, metadata):
def measure(self, measRecord, exposure) -> None:
# Docstring inherited.

try:
shape = measRecord.getShape()
psf_shape = measRecord.getPsfShape()
except lsst.pex.exceptions.NotFoundError:
raise FatalAlgorithmError(
"Both 'slot_Shape' and 'slot_psfShape' must be available for " + self.name + "algorithm.",
)

if measRecord.getShapeFlag():
raise MeasurementError(
"Shape flag is set. Required for " + self.name + " algorithm",
self.FAILURE_BAD_SHAPE,
)

shape = measRecord.getShape()
psf_shape = measRecord.getPsfShape()

ixx = shape.getIxx()
iyy = shape.getIyy()
ixx_psf = psf_shape.getIxx()
Expand Down

0 comments on commit 6c7019e

Please sign in to comment.