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-cicd
csst-dag
Commits
ac7d52e3
"csst_dag/git@csst-tb.bao.ac.cn:csst-cicd/csst-dag.git" did not exist on "737aa1043e361be4db885dd38be142cbab9bff47"
Commit
ac7d52e3
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
raise key error if n_epec_frame is not found
parent
0c1ab265
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dag/dag/_dispatcher.py
View file @
ac7d52e3
...
...
@@ -158,10 +158,14 @@ class Dispatcher:
qr
=
plan
.
find
(
**
override_common_keys
(
PLAN_PARAMS
,
kwargs
))
assert
qr
.
success
,
qr
# plan basis / obsid basis
try
:
for
_
in
qr
.
data
:
_
[
"n_frame"
]
=
(
_
[
"params"
][
"n_epec_frame"
]
if
_
[
"instrument"
]
==
"HSTDM"
else
1
)
except
KeyError
:
print
(
f
"`n_epec_frame` is not found in
{
_
}
"
)
raise
KeyError
(
f
"`n_epec_frame` is not found in
{
_
}
"
)
plan_basis
=
extract_basis_table
(
qr
.
data
,
PLAN_BASIS_KEYS
,
...
...
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