Pipeline
- class stpipe.Pipeline(*args, **kwargs)
Bases:
StepA Pipeline is a way of combining a number of steps together.
See
Stepfor the parameters.Attributes Summary
Collect the list of all reftypes for child Steps that are not skipped.
Methods Summary
get_pars([full_spec])Retrieve the configuration parameters of a pipeline
get_ref_override(reference_file_type)Return any override for
reference_file_typefor any of the steps in Pipelineself.load_spec_file([preserve_comments])merge_config(config, config_file)merge_pipeline_config(refcfg, ref_file)Merge the config parameters from a pipeline config reference file into the config obtained from each step
Attributes Documentation
- reference_file_types: ClassVar
Collect the list of all reftypes for child Steps that are not skipped. Overridden reftypes are included but handled normally later by the Pipeline version of the get_ref_override() method defined below.
- spec
Methods Documentation
- get_pars(full_spec=True)
Retrieve the configuration parameters of a pipeline
Parameters are retrieved for the pipeline and all of its component steps.
- Parameters:
- full_specbool
Return all parameters, including parent-specified parameters. If
False, return only parameters specific to the pipeline and steps.
- Returns:
- parsdict
Keys are the parameters and values are the values.
- get_ref_override(reference_file_type)
Return any override for
reference_file_typefor any of the steps in Pipelineself. OVERRIDES Step.- Returns:
- override_filepath or None.
- classmethod load_spec_file(preserve_comments=<stpipe.utilities._NotSet object>)
- classmethod merge_config(config, config_file)
- classmethod merge_pipeline_config(refcfg, ref_file)
Merge the config parameters from a pipeline config reference file into the config obtained from each step
- Parameters:
- clsjwst.stpipe.pipeline.Pipeline class
The pipeline class
- refcfgConfigObj object
The ConfigObj created from crds cfg files from each of the steps in the pipeline
- ref_filestring
The name of the pipeline crds step config file
- Returns:
- ConfigObj of the merged parameters, with those from the pipeline cfg having
- precedence over those from the individual steps