Skip to content

Commit

Permalink
Create thresh as an alias for thresholdValue
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Oct 31, 2024
1 parent 09af636 commit ad89f28
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion metadetect/lsst/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import ngmix

import lsst.afw.table as afw_table
from lsst.meas.algorithms import SourceDetectionTask, SourceDetectionConfig
from lsst.meas.algorithms import SourceDetectionTask
from lsst.meas.algorithms import SourceDetectionConfig as OriginalSourceDetectionConfig
from lsst.meas.deblender import SourceDeblendTask, SourceDeblendConfig
from lsst.meas.base import (
SingleFrameMeasurementConfig,
Expand Down Expand Up @@ -35,6 +36,16 @@
LOG = logging.getLogger('lsst_measure')


class SourceDetectionConfig(OriginalSourceDetectionConfig):
@property
def thresh(self):
return self.thresholdValue

@thresh.setter
def thresh(self, value):
self.thresholdValue = value


class DetectAndDeblendConfig(Config):
meas = ConfigurableField[SingleFrameMeasurementConfig](
doc="Measurement config",
Expand Down

0 comments on commit ad89f28

Please sign in to comment.