rail.projects.reducer module

class rail.projects.reducer.ComCamReducer(**kwargs)[source]

Bases: RailReducer

Class to reduce the ‘com_cam’ input files for pz analysis

Parameters:

kwargs (Any)

config_options: dict[str, StageParameter] = {'cuts': Parameter(Selections, type: <class 'dict'>, default: {} [optional]), 'name': Parameter(Reducer Name, type: <class 'str'>, default: None [required])}
run(input_catalog, output_catalog)[source]

Subsample the data

Return type:

None

Parameters:
  • input_catalog (str,) – Input files to subsamle

  • output_catalog (str,) – Path to the output file

class rail.projects.reducer.DP1Reducer(**kwargs)[source]

Bases: RailReducer

Class to reduce the ‘DP1’ input files for pz analysis

Parameters:

kwargs (Any)

config_options: dict[str, StageParameter] = {'cuts': Parameter(Selections, type: <class 'dict'>, default: {} [optional]), 'name': Parameter(Reducer Name, type: <class 'str'>, default: None [required])}
run(input_catalog, output_catalog)[source]

Subsample the data

Return type:

None

Parameters:
  • input_catalog (str,) – Input files to subsamle

  • output_catalog (str,) – Path to the output file

class rail.projects.reducer.RailReducer(**kwargs)[source]

Bases: Configurable, DynamicClass

Base class for reducing data catalogs

The main function in this class is: run(input_catalog, output_catalog)

This function will files in the input_catalog, and reduce each one to make the output catalog

Parameters:

kwargs (Any)

config_options: dict[str, StageParameter] = {}
run(input_catalog, output_catalog)[source]

Subsample the data

Return type:

None

Parameters:
  • input_catalog (str,) – Input files to subsamle

  • output_catalog (str,) – Path to the output file

sub_classes: dict[str, type[DynamicClass]] = {'ComCamReducer': <class 'rail.projects.reducer.ComCamReducer'>, 'DP1Reducer': <class 'rail.projects.reducer.DP1Reducer'>, 'RailReducer': <class 'rail.projects.reducer.RailReducer'>, 'RomanRubinReducer': <class 'rail.projects.reducer.RomanRubinReducer'>}
class rail.projects.reducer.RomanRubinReducer(**kwargs)[source]

Bases: RailReducer

Class to reduce the ‘roman_rubin’ simulation input files for pz analysis

Parameters:

kwargs (Any)

config_options: dict[str, StageParameter] = {'cuts': Parameter(Selections, type: <class 'dict'>, default: {} [optional]), 'name': Parameter(Reducer Name, type: <class 'str'>, default: None [required])}
run(input_catalog, output_catalog)[source]

Subsample the data

Return type:

None

Parameters:
  • input_catalog (str,) – Input files to subsamle

  • output_catalog (str,) – Path to the output file