switch back to unit time in seconds, prepare for parallel computing
This commit is contained in:
@@ -58,9 +58,9 @@ def leapfrog(dyn_syst, bin_syst, duration, dt, recover_param=False, display=Fals
|
||||
if display and j % 10 == 0:
|
||||
# display progression
|
||||
if len(dyn_syst.bodylist) == 1:
|
||||
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt))
|
||||
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt/yr))
|
||||
else:
|
||||
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt))
|
||||
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt/yr))
|
||||
if display:
|
||||
d.close()
|
||||
if not savename is None:
|
||||
|
||||
Reference in New Issue
Block a user