LSST Applications g011c388f00+f985364e28,g0265f82a02+cefac37fe7,g16a3bce237+cefac37fe7,g2079a07aa2+b9108c1c87,g2bbee38e9b+cefac37fe7,g337abbeb29+cefac37fe7,g3ddfee87b4+425a3f5e02,g4cf46543a9+2ef32aa566,g50ff169b8f+8309cf5058,g52b1c1532d+43dac7135f,g5d89126706+46afc7f72d,g83996f0134+2fb8039c37,g858d7b2824+59f22cc8bb,g87e100324b+59f22cc8bb,g8a8a8dda67+43dac7135f,g99855d9996+1ea0a8cf94,g9d147d8712+4559cd7206,g9ddcbc5298+389b8f2b7e,ga1e77700b3+4bafba478f,ga8c6da7877+1b58c58f75,gae46bcf261+cefac37fe7,gb700894bec+f0b514b300,gb8350603e9+4979c46fed,gba4ed39666+fb465f0d3e,gbeb006f7da+bf3b4a8997,gc86a011abf+59f22cc8bb,gcf0d15dbbd+425a3f5e02,gd162630629+d0c22ff203,gd44f2fa1a7+91fd017016,gdaeeff99f8+6b435c3f92,ge79ae78c31+cefac37fe7,ge9008a0c34+425a3f5e02,gee10cc3b42+43dac7135f,gf041782ebf+713927f999,gf1cff7945b+59f22cc8bb,w.2024.07
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lsst.ip.diffim.diaCatalogSourceSelector.CheckSource Class Reference
Inheritance diagram for lsst.ip.diffim.diaCatalogSourceSelector.CheckSource:

Public Member Functions

 __init__ (self, table, fluxLim, fluxMax, badFlags)
 
 __call__ (self, source)
 

Public Attributes

 keys
 
 fluxLim
 
 fluxMax
 

Detailed Description

A functor to check whether a source has any flags set that should cause it to be labeled bad.

Definition at line 83 of file diaCatalogSourceSelector.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.__init__ (   self,
  table,
  fluxLim,
  fluxMax,
  badFlags 
)

Definition at line 86 of file diaCatalogSourceSelector.py.

86 def __init__(self, table, fluxLim, fluxMax, badFlags):
87 self.keys = [table.getSchema().find(name).key for name in badFlags]
88 self.fluxLim = fluxLim
89 self.fluxMax = fluxMax
90

Member Function Documentation

◆ __call__()

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.__call__ (   self,
  source 
)

Definition at line 91 of file diaCatalogSourceSelector.py.

91 def __call__(self, source):
92 for k in self.keys:
93 if source.get(k):
94 return False
95 if self.fluxLim is not None and source.getPsfInstFlux() < self.fluxLim: # ignore faint objects
96 return False
97 if self.fluxMax != 0.0 and source.getPsfInstFlux() > self.fluxMax: # ignore bright objects
98 return False
99 return True
100
101
102@pexConfig.registerConfigurable("diaCatalog", measAlg.sourceSelectorRegistry)

Member Data Documentation

◆ fluxLim

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.fluxLim

Definition at line 88 of file diaCatalogSourceSelector.py.

◆ fluxMax

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.fluxMax

Definition at line 89 of file diaCatalogSourceSelector.py.

◆ keys

lsst.ip.diffim.diaCatalogSourceSelector.CheckSource.keys

Definition at line 87 of file diaCatalogSourceSelector.py.


The documentation for this class was generated from the following file: