ska_sdp_e2e_batch_continuum_imaging.pipelines.subpipelines.inst.base_inst_runner module

class ska_sdp_e2e_batch_continuum_imaging.pipelines.subpipelines.inst.base_inst_runner.BaseINSTRunner(output_dir, sdm_path)[source]

Bases: object

BaseINSTRunner is the parent of all INST runners.

This class is responsible for configuring, preparing, and running the instrumental calibration runners using the provided output directory. It handles the creation of necessary directories, configuration files, and invokes the calibration pipeline with appropriate arguments.

Parameters:
  • output_dir (Path) -- Base directory where output, monitor, and temporary files will be stored.

  • sdm_path (str) -- Path to the SDM (Science Data Model) directory.

output_dir

Directory for storing pipeline outputs.

Type:

Path

temp_dir

Directory for temporary files.

Type:

Path

sdm_path

Path to the SDM (Science Data Model) directory.

Type:

str

subdir = 'inst'
property config

Generates configuration dictionary for all INST pipeline.

property pipeline_command

Defines the command for all INST pipeline.

run(sources, env_vars)[source]

Run the INST pipeline and return gaintable path.

Parameters:
  • sources (list[str]) -- Calibrator sources name.

  • env_vars (dict) -- Environment variables for the pipeline execution.

Returns:

str

Path to the generated gaintable.