Commit 3007158e authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Do not rely on the index to find the last observation analysed as they may be...

Do not rely on the index to find the last observation analysed as they may be out of order. Rather use the number of observations already analysed. It should void a spurious carriage return that occurs in some cases.
parent 8f51e634
...@@ -403,4 +403,4 @@ def analysis(idx, obs): ...@@ -403,4 +403,4 @@ def analysis(idx, obs):
print("{}/{} objects analysed in {} seconds ({} objects/s)". print("{}/{} objects analysed in {} seconds ({} objects/s)".
format(n_computed, gbl_n_obs, np.around(t_elapsed, decimals=1), format(n_computed, gbl_n_obs, np.around(t_elapsed, decimals=1),
np.around(n_computed/t_elapsed, decimals=2)), np.around(n_computed/t_elapsed, decimals=2)),
end="\n" if idx == gbl_n_obs-1 else "\r") end="\n" if n_computed == gbl_n_obs else "\r")
Markdown is supported
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