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
488d3493
Commit
488d3493
authored
Jul 10, 2025
by
BO ZHANG
🏀
Browse files
convert n_file_expected to int
parent
2f7c491e
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/dag/_dispatcher.py
View file @
488d3493
...
@@ -511,7 +511,7 @@ class Dispatcher:
...
@@ -511,7 +511,7 @@ class Dispatcher:
this_data_obsid_file
[
"detector"
]
this_data_obsid_file
[
"detector"
]
)
)
n_file_expected
=
this_data_obsid_plan
[
"n_frame"
].
sum
()
n_file_expected
=
int
(
this_data_obsid_plan
[
"n_frame"
].
sum
()
)
n_file_found
=
len
(
this_data_obsid_file
)
n_file_found
=
len
(
this_data_obsid_file
)
# set n_file_expected and n_file_found
# set n_file_expected and n_file_found
this_task
[
"n_file_expected"
]
=
n_file_expected
this_task
[
"n_file_expected"
]
=
n_file_expected
...
@@ -612,7 +612,7 @@ class Dispatcher:
...
@@ -612,7 +612,7 @@ class Dispatcher:
this_obsgroup_obsid_file
[
"detector"
]
this_obsgroup_obsid_file
[
"detector"
]
)
)
n_file_expected
=
this_obsgroup_plan
[
"n_frame"
].
sum
()
n_file_expected
=
int
(
this_obsgroup_plan
[
"n_frame"
].
sum
()
)
n_file_found
=
len
(
this_obsgroup_file
)
n_file_found
=
len
(
this_obsgroup_file
)
# set n_file_expected and n_file_found
# set n_file_expected and n_file_found
this_task
[
"n_file_expected"
]
=
n_file_expected
this_task
[
"n_file_expected"
]
=
n_file_expected
...
...
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