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

convert n_file_expected to int

parent 2f7c491e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -511,7 +511,7 @@ class Dispatcher:
                    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)
            # set n_file_expected and n_file_found
            this_task["n_file_expected"] = n_file_expected
@@ -612,7 +612,7 @@ class Dispatcher:
                        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)
            # set n_file_expected and n_file_found
            this_task["n_file_expected"] = n_file_expected