diff --git a/doc/source/csst_common/example_interface.py b/doc/source/csst_common/example_interface.py index 0b6e6024e92a0ea4425c5f7a5e0521cc6cc375a3..2e4d73151d0fc699c9bb48cfdcece1075441cbdd 100644 --- a/doc/source/csst_common/example_interface.py +++ b/doc/source/csst_common/example_interface.py @@ -78,14 +78,14 @@ def process_single_image( if fits.getheader(filepath_output)["STT_DIST"] == 0 and \ fits.getheader(filepath_output)["PCS_DIST"] < 1e-5 and \ fits.getheader(filepath_output)["NS_DIST"] >= 8: - return CsstStatus.PERFECT + return CsstStatus.PERFECT, fr else: - return CsstStatus.WARNING + return CsstStatus.WARNING, fr else: # file doesn't exist, do your fallback solution fits.HDUList(fits.PrimaryHDU()).writeto(filepath_output) assert os.path.exists(filepath_output) - return CsstStatus.WARNING + return CsstStatus.WARNING, fr # process multiple images in an exposure (RECOMMENDED, at least for MBI or SLS)