6. The cpl.FrameConfig class

class cpl.FrameConfig(tag, min_frames=0, max_frames=0, frames=None)

Frame configuration.

Each FrameConfig object stores information about one the data type a recipe can process. They are used for defining the calibration files. However, since this information is not generally provided by CPL recipes, it contains only dummy information, except for the MUSE recipes.

The objects stores a frame tag, a unique identifier for a certain kind of frame, the minimum and maximum number of frames needed.

Attributes:

tag

Category tag name. The tag name is used to distinguish between different types of files. An examples of tag names is ‘MASTER_BIAS’ which specifies the master bias calibration file(s).

min

Minimal number of frames, or None if not specified. A frame is required if the min is set to a value greater than 0.

max

Maximal number of frames, or None if not specified

frames

List of frames (file names or astropy.io.fits.HDUList objects) that are assigned to this frame type.

See also

Recipe.calib