rail.creation.degradation.quantityCut module
Degrader that applies a cut to given columns.
- class rail.creation.degradation.quantityCut.QuantityCut(args, comm=None)[source]
Bases:
DegraderDegrader that applies a cut to the given columns.
Note if a galaxy fails any of the cuts on any one of its columns, that galaxy is removed from the sample.
- config_options = {'cuts': <class 'dict'>, 'output_mode': <ceci.config.StageParameter object>, 'seed': 12345}
- name = 'QuantityCut'
- run()[source]
Run method
Applies cuts
Notes
Get the input data from the data store under this stages ‘input’ tag Puts the data into the data store under this stages ‘output’ tag
- set_cuts(cuts: dict)[source]
- Parameters:
cuts (dict) – A dictionary of cuts to make on the data.
Notes
The cut keys should be the names of columns you wish to make cuts on. The cut values should be either: - a number, which is the maximum value. I.e. if the dictionary contains “i”: 25, then values of i > 25 are cut from the sample. - an iterable, which is the range of acceptable values. I.e. if the dictionary contains “redshift”: (1.5, 2.3), then redshifts outside that range are cut from the sample.