Pipeline module

class autoprof.Pipeline.Isophote_Pipeline(loggername=None)[source]

Bases: object

Process_ConfigFile(config_file)[source]

Reads in a configuration file and sets parameters for the pipeline. The configuration file should have variables corresponding to the desired parameters to be set.

congig_file: string path to configuration file

returns: timing of each pipeline step if successful. Else returns 1

Process_Image(options={})[source]

Function which runs the pipeline for a single image. Each sub-function of the pipeline is run in order and the outputs are passed along. If multiple images are given, the pipeline is excecuted on the first image and the isophotes are applied to the others.

returns list of times for each pipeline step if successful. else returns 1

Process_List(options)[source]

Wrapper function to run “Process_Image” in parallel for many images.

UpdatePipeline(new_pipeline_methods=None, new_pipeline_steps=None)[source]

modify steps in the AutoProf pipeline.

new_pipeline_methods: update the dictionary of methods used by the pipeline. This can either add

new methods or replace existing ones.

new_pipeline_steps: update the list of pipeline step strings. These strings refer to keys in

pipeline_methods. It is posible to add/remove/rearrange steps here. Alternatively one can supply a dictionary with current pipeline steps as keys and new pipeline steps as values, the corresponding steps will be replaced.