Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
3d8b140f
Commit
3d8b140f
authored
Feb 09, 2023
by
BO ZHANG
🏀
Browse files
update example_interface.py
parent
96b2c78c
Pipeline
#262
passed with stages
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/source/csst_common/example_interface.py
View file @
3d8b140f
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment