pypeit.scripts.status module

Script to check and display the status of a PypeIt reduction without actually running any processing steps.

class pypeit.scripts.status.PypeItStatus[source]

Bases: ScriptBase

The pypeit_status console script: report a reduction’s calibration and science status without running any processing.

classmethod get_parser(width=None)[source]

Construct the command-line argument parser.

Parameters:

width (int, optional) – Restrict the formatted help width to this many characters.

Returns:

The command-line parser.

Return type:

argparse.ArgumentParser

classmethod main(args)[source]

Check and print a PypeIt reduction’s status without processing.

Loads the reduction in calib_only mode, derives the calibration status from the on-disk Calibrations/ outputs (a status-only read, no processing), derives the science-frame status from the on-disk Science/ products (see derive_science_from_disk()), and prints both to the screen (print_status()). The status is always re-derived from the current on-disk products; any existing state file is not simply trusted.

Parameters:

args (argparse.Namespace) – The parsed command-line arguments.

Returns:

0 on success.

Return type:

int