Commit 5a2964c1 authored by Médéric Boquien's avatar Médéric Boquien

Add a carriage return after we have computed the last model or analysed the...

Add a carriage return after we have computed the last model or analysed the last object so that the information does not get erased.
parent b8d4f60a
......@@ -192,7 +192,7 @@ def sed(idx):
format(n_computed, gbl_params.size,
np.around(t_elapsed, decimals=1),
np.around(n_computed/t_elapsed, decimals=1)),
end="\r")
end="\n" if n_computed == gbl_params.size else "\r")
def analysis(idx, obs):
......@@ -401,5 +401,5 @@ def analysis(idx, obs):
print("{}/{} objects analysed in {} seconds ({} objects/s)".
format(n_computed, gbl_n_obs, np.around(t_elapsed, decimals=1),
np.around(n_computed/t_elapsed, decimals=2)),
end="\r")
end="\n" if idx == gbl_n_obs-1 else "\r")
......@@ -100,4 +100,4 @@ def fluxes(idx):
format(n_computed, gbl_params.size,
np.around(t_elapsed, decimals=1),
np.around(n_computed/t_elapsed, decimals=1)),
end="\r")
end="\n" if n_computed == gbl_params.size 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