Skip to content

Commit

Permalink
Use nodata flags, separate from edge
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Nov 14, 2024
1 parent 1a0ca8c commit 97956d3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/lsst/meas/algorithms/measureApCorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def setDefaults(self):
selector.flags.good = []
selector.flags.bad = [
"base_PixelFlags_flag_edge",
"base_PixelFlags_flag_nodata",
"base_PixelFlags_flag_interpolatedCenter",
"base_PixelFlags_flag_saturatedCenter",
"base_PixelFlags_flag_crCenter",
Expand Down
1 change: 1 addition & 0 deletions python/lsst/meas/algorithms/objectSizeStarSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class ObjectSizeStarSelectorConfig(BaseSourceSelectorTask.ConfigClass):
dtype=str,
default=[
"base_PixelFlags_flag_edge",
"base_PixelFlags_flag_nodata",
"base_PixelFlags_flag_interpolatedCenter",
"base_PixelFlags_flag_saturatedCenter",
"base_PixelFlags_flag_crCenter",
Expand Down
3 changes: 2 additions & 1 deletion python/lsst/meas/algorithms/sourceSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ class ScienceSourceSelectorConfig(pexConfig.Config):

def setDefaults(self):
pexConfig.Config.setDefaults(self)
self.flags.bad = ["base_PixelFlags_flag_edge", "base_PixelFlags_flag_saturated", "base_PsfFlux_flag"]
self.flags.bad = ["base_PixelFlags_flag_edge", "base_PixelFlags_flag_nodata",
"base_PixelFlags_flag_saturated", "base_PsfFlux_flag"]
self.signalToNoise.fluxField = "base_PsfFlux_instFlux"
self.signalToNoise.errField = "base_PsfFlux_instFluxErr"
self.skyFlag.good = ["sky_source"]
Expand Down
1 change: 1 addition & 0 deletions tests/test_measureApCorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def setUp(self):
schema.addField("deblend_nChild", type=np.int32)
for flag in [
"base_PixelFlags_flag_edge",
"base_PixelFlags_flag_nodata",
"base_PixelFlags_flag_interpolatedCenter",
"base_PixelFlags_flag_saturatedCenter",
"base_PixelFlags_flag_crCenter",
Expand Down

0 comments on commit 97956d3

Please sign in to comment.