lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.split_primary.SplitPrimaryTask Class Reference
Inheritance diagram for lsst.pipe.tasks.split_primary.SplitPrimaryTask:

Public Member Functions

Struct run (self, *, astropy.table.Table full)

Static Public Attributes

ClassVar ConfigClass = SplitPrimaryConfig

Static Protected Attributes

ClassVar _DefaultName = "splitPrimary"

Detailed Description

A task that splits its input table into "primary" and "nonprimary"
row-subset tables based on the value of a boolean column, dropping that
column and optionally others from the two outputs.

Member Function Documentation

◆ run()

Struct lsst.pipe.tasks.split_primary.SplitPrimaryTask.run ( self,
* ,
astropy.table.Table full )
Run the task.

Parameters
----------
full : `astropy.table.Table`
    Table to split into row subsets.

Returns
-------
result : `lsst.pipe.base.Struct`
    Structure with two attributes:

    - ``primary`` (`astropy.table.Table`) table with rows where the
      `SplitPrimaryConfig.primary_flag_column` is `True`.

    - ``nonprimary`` (`astropy.table.Table`) table with rows where the
      `SplitPrimaryConfig.primary_flag_column` is `False`.

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/split_primary.py