rail.creation.selector module

Abstract base class defining a selector.

The key feature here is make selection to either the photometric or spectroscopic catalog. Intended subclasses spectroscopic selection, probability selection on a grid for the photometry, or pure photometric selection.

class rail.creation.selector.Selector(args, comm=None)[source]

Bases: RailStage

Base class Selector, which makes selection to the catalog

Selector take “input” data in the form of pandas dataframes in Parquet files and provide as “output” another pandas dataframes written to Parquet files.

Configuration Parameters: output_mode [str]: What to do with the outputs (default=default) drop_rows [bool]: Drop selected rows from output table (default=True) seed [type not specified]: Set to an int to force reproducible results. (default=None)

config_options = {'drop_rows': <ceci.config.StageParameter object>, 'output_mode': <ceci.config.StageParameter object>, 'seed': <ceci.config.StageParameter object>}
inputs = [('input', <class 'rail.core.data.PqHandle'>)]
name = 'Selector'
outputs = [('output', <class 'rail.core.data.PqHandle'>)]
run()[source]

Run the stage and return the execution status