hispecdrp.calibrations.download_verify

Post-download checks so KOA sync cannot report success without a real file.

Functions

ensure_calibration_on_disk(path, *[, ...])

Raise if path is missing or too small to be a real calibration FITS.

normalize_downloaded_calibration_path(...)

Ensure the on-disk file lives at expected_path (data_dir / DB filename).

ensure_calibration_on_disk(path, *, expected_filename=None, cal_record=None, min_bytes=2880)[source]

Raise if path is missing or too small to be a real calibration FITS.

normalize_downloaded_calibration_path(downloaded_path, expected_path)[source]

Ensure the on-disk file lives at expected_path (data_dir / DB filename).