Commit 3d8b140f authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

update example_interface.py

parent 96b2c78c
Pipeline #262 passed with stages
in 12 seconds
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment