Loading doc/source/csst_common/example_interface.py +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
doc/source/csst_common/example_interface.py +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading