autowisp.run_pipeline module

Class Inheritance Diagram

Inheritance diagram of ArgumentParser, AutoWISPError, DefaultsFormatter, ImageProcessingManager, LightCurveProcessingManager, PipelineError, PipelineRun, ResourceError

Run the image processing pipeline in a detached mode.

autowisp.run_pipeline._record_escaping_error(exc)[source]

Stamp the pipeline-run snapshot (if missing) and report exc.

autowisp.run_pipeline._run_pipeline(config)[source]

Create the pipeline run and drive image + lightcurve processing.

autowisp.run_pipeline.main(config)[source]

Set up the project and run the pipeline, recording any error.

The top-level handler records any exception that escapes the run – not just an AutoWISPError. A plain exception from the orchestration layer (e.g. a bad configuration expression) is wrapped in a PipelineError so it is still captured. The error is stamped with the pipeline-run snapshot (and the crashed time) if it lacks one, then reported via report_error() – recording it as a queryable Error row plus sidecar and rendering a summary to stderr (which, for a detached run, is run_pipeline.out) – and re-raised. Reporting is best-effort and never masks the original error.

autowisp.run_pipeline.parse_command_line()[source]

Return the command line configuration.