From 3d8b140f6ad3121da3bb43b9320979fcf3b27282 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Thu, 9 Feb 2023 10:19:47 +0800 Subject: [PATCH] update example_interface.py --- doc/source/csst_common/example_interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/csst_common/example_interface.py b/doc/source/csst_common/example_interface.py index 0b6e602..2e4d731 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) -- GitLab