Commit 155786e0 authored by Médéric Boquien's avatar Médéric Boquien

As the code is much faster now, let's update the number of computed models a...

As the code is much faster now, let's update the number of computed models a bit less often as printing something on screen causes a context switch
parent c426697d
......@@ -189,7 +189,7 @@ def sed(idx):
with gbl_n_computed.get_lock():
gbl_n_computed.value += 1
n_computed = gbl_n_computed.value
if n_computed % 100 == 0 or n_computed == gbl_params.size:
if n_computed % 250 == 0 or n_computed == gbl_params.size:
t_elapsed = time.time() - gbl_t_begin
print("{}/{} models computed in {} seconds ({} models/s)".
format(n_computed, gbl_params.size,
......
......@@ -98,7 +98,7 @@ def fluxes(idx):
with gbl_n_computed.get_lock():
gbl_n_computed.value += 1
n_computed = gbl_n_computed.value
if n_computed % 100 == 0 or n_computed == gbl_params.size:
if n_computed % 250 == 0 or n_computed == gbl_params.size:
t_elapsed = time.time() - gbl_t_begin
print("{}/{} models computed in {} seconds ({} models/s)".
format(n_computed, gbl_params.size,
......
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