Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions python/lsst/analysis/tools/actions/vector/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def __call__(self, data: KeyedData, **kwargs) -> Vector:
return cast(Vector, result)

def setDefaults(self):
super().setDefaults()
self.selectWhenFalse = [
"{band}_psfFlux_flag",
"{band}_pixelFlags_saturatedCenter",
Expand All @@ -193,6 +194,7 @@ class MatchingFlagSelector(CoaddPlotFlagSelector):
"""

def setDefaults(self):
super().setDefaults()
self.selectWhenFalse = []
self.selectWhenTrue = ["detect_isPrimary"]

Expand Down Expand Up @@ -226,6 +228,7 @@ def __call__(self, data: KeyedData, **kwargs) -> Vector:
return result

def setDefaults(self):
super().setDefaults()
self.selectWhenFalse = [
"psfFlux_flag",
"pixelFlags_saturatedCenter",
Expand Down Expand Up @@ -614,6 +617,7 @@ class ParentObjectSelector(FlagSelector):
"""Select only parent objects that are not sky objects."""

def setDefaults(self):
super().setDefaults()
# This selects all of the parents
self.selectWhenFalse = [
"detect_isDeblendedModelSource",
Expand Down Expand Up @@ -783,6 +787,7 @@ class InjectedGalaxySelector(InjectedClassSelector):
"""A selector for injected galaxies."""

def setDefaults(self):
super().setDefaults()
self.name_class = "galaxy"
# Assumes not star == galaxy - if there are injected AGN or other
# object classes, this will need to be updated
Expand All @@ -793,6 +798,7 @@ class InjectedStarSelector(InjectedClassSelector):
"""A selector for injected stars."""

def setDefaults(self):
super().setDefaults()
self.name_class = "star"


Expand Down
1 change: 1 addition & 0 deletions python/lsst/analysis/tools/atools/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class CalibrationTool(AnalysisTool):
parameterizedBand: bool = False

def setDefaults(self):
super().setDefaults()
self.process.buildActions.x = LoadVector(vectorKey="detector")
self.process.buildActions.y = LoadVector(vectorKey="amplifier")
self.process.buildActions.detector = LoadVector(vectorKey="detector")
Expand Down
11 changes: 3 additions & 8 deletions python/lsst/analysis/tools/atools/diffMatched.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,7 @@ def get_key_flux_y(self) -> str:
raise NotImplementedError("subclasses must implement get_key_flux_y")

def setDefaults(self):
MagnitudeXTool.setDefaults(self)
MatchedRefCoaddTool.setDefaults(self)
super().setDefaults()
self.mag_x = "ref_matched"
self.prep.selectors.matched = MatchedObjectSelector()

Expand All @@ -462,10 +461,7 @@ def finalize(self):
MagnitudeScatterPlot.finalize(self)

def setDefaults(self):
# This will set no plot
MatchedRefCoaddDiffTool.setDefaults(self)
# This will set the plot
MagnitudeScatterPlot.setDefaults(self)
super().setDefaults()
self.produce.plot.xLims = self.limits_x_mag_default


Expand Down Expand Up @@ -681,8 +677,7 @@ def reconfigure_dependent_magnitudes(
_set_field_config(self, name="mag_target", value=key_flux_meas)

def setDefaults(self):
MagnitudeTool.setDefaults(self)
MatchedRefCoaddTool.setDefaults(self)
super().setDefaults()

self.mag_bins_plot.mag_interval = 100
self.mag_bins_plot.mag_width = 200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class AstrometricCatalogMatchVisitConfig(
)

def setDefaults(self):
super().setDefaults()
self.matchesRefCat = True
self.idColumn = "sourceId"
# sourceSelectorActions.sourceSelector is StarSelector
Expand Down
1 change: 1 addition & 0 deletions tests/test_contexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class TestAnalysisTool(AnalysisTool):
__test__ = False # Tell pytest that this is *not* a test suite

def setDefaults(self) -> None:
super().setDefaults()
self.prep = TestAction1()
self.process = TestAction2()
self.produce = TestAction3()
Expand Down