autowisp.processing_steps.manual_util module
Class Inheritance Diagram

Collection of functions used by many processing steps.
- class autowisp.processing_steps.manual_util.ManualStepArgumentParser(*, input_type, description, add_component_versions=(), add_catalog=False, add_photref=False, inputs_help_extra='', allow_parallel_processing=False, convert_to_dict=True, add_lc_fname_arg=False, add_exposure_timing=False, skip_io=False)[source]
Bases:
ArgumentParser
Incorporate boiler plate handling of command line arguments.
- __init__(*, input_type, description, add_component_versions=(), add_catalog=False, add_photref=False, inputs_help_extra='', allow_parallel_processing=False, convert_to_dict=True, add_lc_fname_arg=False, add_exposure_timing=False, skip_io=False)[source]
Initialize the praser with options common to all manual steps.
- Parameters:
input_type (str) – What kind of files does the step process. Possible values are
'raw'
,'calibrated'
,'dr'
, or'calibrated + dr'
.description (str) – The description of the processing step to add to the help message.
add_component_versions (str iterable) – A list of DR file version numbers the step needs to know. For example
('srcextract',)
.add_catalog (False or dict) – Whether to add an arguments to specify a catalog query. If not False should specify defaults for some or all of the option values and a prefix for the option names.
inputs_help_extra (str) – Additional text to append to the help string for the input files. Usually describing what requirements they must satisfy.
allow_parallel_processing (bool) – Should an argument be added to specify the number of paralllel processes to use.
convert_to_dict (bool) – Whether to return the parsed configuration as a dictionary (True) or attributes of a namespace (False).
- Returns:
None
- autowisp.processing_steps.manual_util.add_image_options(parser, include=('subpixmap', 'gain', 'magnitude-1adu'))[source]
Add options specifying the properties of the image.
- autowisp.processing_steps.manual_util.get_catalog_config(cmdline_args, prefix)[source]
Return the configuration for querrying a catalog per command line.