4.1.1.4. recipe_system.reduction package

4.1.1.4.2. Submodules

4.1.1.4.3. recipe_system.reduction.coreReduce module

class Reduce provides one (1) public method:

runr()

which calls on the mapper classes and passes the received data to them.

class recipe_system.reduction.coreReduce.Reduce(sys_args=None)[source]

Bases: object

The Reduce class encapsulates the core processing to be done by reduce. __init__ may receive one (1) parameter, nominally, an argparse Namespace instance. However, this object type is not required, but only that any passed object must present an equivalent interface to that of an <argparse.Namespace> instance, i.e. a duck type.

The class provides one (1) public method, runr(), the only call needed to run reduce on the supplied argument set.

Parameters:sys_args (argparse.Namespace (optional) or <duck-type object>) – This object type is not required, per se, but only that any passed object must present an equivalent interface to that of an argparse.Namespace instance.
adinputs

attribute is a list of the input astrodata objects as made from the ‘files’ list (see ‘files’ below).

Type:<list>
output_filenames

read-only property is a list of final output filenames.

Type:<list>
mode

operational mode. Currently, only ‘qa’, ‘sq’ modes are supported.

Type:<str>
drpkg

Data reduction package name. Default is ‘geminidr’, the Gemini Observatory data reduction package.

Type:<str>
files

List of input filenames. Passed to Reduce.__init__(), these are converted to astrodata objects.

Type:<list>
suffix

User supplied suffix to be applied as a final suffix to output filenames.

Type:<str>
ucals

Dictionary of calibration files passed by –user_cals flag.

Type:<dict>
uparms

Dictionary of user parameters as passed by -p, –param flag.

Type:<dict>
upload

List of products to upload to fitsstore as passed by –upload. E.g.,

–upload metrics calibs
==> upload == [‘metrics’, ‘calibs’]

will upload QA metrics to fitsstore and processing calibration files.

Type:<list>
recipename

The name of the recipe that will be run. If None, the ‘default’ recipe is used, as specified in the appropriate recipe library.

Type:<str>
output_filenames
runr()[source]

Map and run the requested or defaulted recipe.

Parameters:<void>
Returns:
Return type:<void>
upload