Definition at line 33 of file sourceContinued.py.
◆ getChildren()
def lsst.afw.table.source.sourceContinued.SourceCatalog.getChildren |
( |
|
self, |
|
|
|
parent, |
|
|
|
args |
|
) |
| |
Return the subset of self for which the parent field equals the given value.
In order for this method to return the correct result, it must be sorted by parent
(i.e. self.isSorted(SourceTable.getParentKey()) must be True). This is naturally the
case with SourceCatalogs produced by the detection and deblending tasks, but it may
not be true when concatenating multiple such catalogs.
Additional Catalogs or sequences whose elements correspond in order to the records
of self (i.e. zip(self, *args) is valid) will be subset using the same slice object
used on self, and these subsets will be returned along with the subset of self.
Definition at line 35 of file sourceContinued.py.
35 def getChildren(self, parent, *args):
36 """Return the subset of self for which the parent field equals the given value. 38 In order for this method to return the correct result, it must be sorted by parent 39 (i.e. self.isSorted(SourceTable.getParentKey()) must be True). This is naturally the 40 case with SourceCatalogs produced by the detection and deblending tasks, but it may 41 not be true when concatenating multiple such catalogs. 43 Additional Catalogs or sequences whose elements correspond in order to the records 44 of self (i.e. zip(self, *args) is valid) will be subset using the same slice object 45 used on self, and these subsets will be returned along with the subset of self. 47 if not self.isSorted(SourceTable.getParentKey()):
49 "The table is not sorted by parent, so cannot getChildren")
50 s = self.equal_range(parent, SourceTable.getParentKey())
52 return (self[s],) + tuple(arg[s]
for arg
in args)
The documentation for this class was generated from the following file:
- /j/snowflake/release/lsstsw/stack/Linux64/afw/18.1.0/python/lsst/afw/table/source/sourceContinued.py