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
Compare Revisions
883136322ebf7fc73d7a000a840796e4ea7e9c9b...a9e5e5b9f5957859ed7ab1114ace83e3bd817dc0
Commits (2)
fixed n_file bug in plan_basis
· 99f949fd
BO ZHANG
authored
Jul 22, 2025
99f949fd
fixed n_file bug in plan_basis
· a9e5e5b9
BO ZHANG
authored
Jul 22, 2025
a9e5e5b9
Hide whitespace changes
Inline
Side-by-side
csst_dag/dag/_dispatcher.py
View file @
a9e5e5b9
...
...
@@ -170,13 +170,15 @@ class Dispatcher:
# plan basis / obsid basis
try
:
for
_
in
qr
.
data
:
if
_
[
"instrument"
]
==
"HSTDM"
:
this_instrument
=
_
[
"instrument"
]
if
this_instrument
==
"HSTDM"
:
if
_
[
"params"
][
"detector"
]
==
"SIS12"
:
this_n_file
=
len
(
_
[
"params"
][
"exposure_start"
])
*
2
else
:
this_n_file
=
len
(
_
[
"params"
][
"exposure_start"
])
else
:
this_n_file
=
1
# count effective detectors of this instrument
this_n_file
=
len
(
csst
[
this_instrument
].
effective_detector_names
)
_
[
"n_file"
]
=
this_n_file
except
KeyError
:
print
(
f
"`n_epec_frame` is not found in
{
_
}
"
)
...
...
@@ -464,6 +466,8 @@ class Dispatcher:
if
len
(
plan_basis
)
==
0
or
len
(
data_basis
)
==
0
:
return
[]
obsid_basis
=
data_basis
.
group_by
([
""
])
# unique obsid
u_obsid
=
table
.
unique
(
data_basis
[
"dataset"
,
"obs_id"
])
relevant_plan
=
table
.
join
(
...
...