Commit 488d3493 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

convert n_file_expected to int

parent 2f7c491e
...@@ -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
......
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