rail.creation.degrader module

Abstract base class defining a degrader

The key feature is that the __call__ method takes a pandas DataFrame and a seed, and returns a pandas DataFrame, and wraps the run method

class rail.creation.degrader.Degrader(args, comm=None)[source]

Bases: RailStage

Base class Degraders, which apply various degradations to synthetic photometric data

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

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