5.1. recipe_system package

recipe_system.reduce_data(files, mode='sq', drpkg='geminidr', recipename=None, uparms={}, ucals={}, upload=None, config_file=None, suffix=None, logmode=None)[source]

Map and run the requested or defaulted recipe.

5.1. Parameters

files<list> or str

The set of files to reduce, if a string it is assumed to be a single file

mode<str>

The mode of reduction: qa ql or sq, defaults to sq

drpkg :<str>

The data reduction package to map. Default is ‘geminidr’. This package must be importable.

recipename<str>

The name of the recipe or primitive to run, or None for default

uparms<dict>

The parameters for the recipes, if any

ucals<dict>

Calibration files to use, if any, as a dictionary mapping calibration type to file, None for default

upload<list>

List of types to upload, default None

config_filestr

Configuration file to use, None for default

suffixstr

Suffix to add to output file(s), None for default

logmodestr

Mode of logging such as ‘debug’, or None for default

5.1. Returns

<list> : List of files produced by the reduction

5.1.1. Subpackages

5.1.2. Submodules

5.1.3. recipe_system.config module

This module provides an interface to config files, and a globally available config object, to share setup information across the application.

An instance of ConfigParser, globalConf, is initialized when first loading this module, and it should be used as the only interface to the config system.

recipe_system.config.environment_variable_name(section, option)[source]
recipe_system.config.expand_filenames(filenames=None, deprecation_warning=True)[source]

Expand the list of filenames to read the config from.

5.1. Parameters

filenamesstr/list/None

filenames of config files to load, or None for default

recipe_system.config.load_config(filenames=None)[source]

Updates the globalConf object by reading one or more config files. If no filename is passed, the default config file is read.

5.1. Parameters

filenamesstr/list/None

filenames of config files to load