Chooser

class sofia_redux.pipeline.chooser.Chooser[source]

Bases: object

Choose Redux reduction objects.

This class provides the API for Redux choosers. It returns a Reduction object for all input data. Any more complex behavior should be implemented in a subclass of this class.

Attributes:
supported: dict

Keys are the instruments supported by this chooser; values are lists of supported modes for the instrument.

Initialize the chooser.

Methods Summary

choose_reduction([data, config])

Return a Reduction object.

Methods Documentation

choose_reduction(data=None, config=None)[source]

Return a Reduction object.

Parameters:
datalist of str, optional

Input data file names.

configstr, dict, or ConfigObj, optional

Configuration file or object. May be any type accepted by the configobj.ConfigObj constructor.