Skip to content

Commit

Permalink
do it everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed Oct 31, 2024
1 parent ad89f28 commit cff96dd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions metadetect/lsst/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def thresh(self, value):
self.thresholdValue = value


SourceDetectionTask.ConfigClass = SourceDetectionConfig


class DetectAndDeblendConfig(Config):
meas = ConfigurableField[SingleFrameMeasurementConfig](
doc="Measurement config",
Expand Down
15 changes: 14 additions & 1 deletion metadetect/lsst/skysub.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
SubtractBackgroundTask,
SubtractBackgroundConfig,
SourceDetectionTask,
SourceDetectionConfig,
)
from lsst.meas.algorithms import SourceDetectionConfig as OriginalSourceDetectionConfig
from lsst.pex.config import Config, ConfigurableField, Field
from lsst.pipe.base import Task

Expand All @@ -13,6 +13,19 @@
from . import util


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

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


SourceDetectionTask.ConfigClass = SourceDetectionConfig


class IterateDetectionSkySubConfig(Config):
niter = Field[int](
doc="Number of iterations",
Expand Down

0 comments on commit cff96dd

Please sign in to comment.