Skip to content

Commit 336e868

Browse files
committed
Placehoder
1 parent c8f3128 commit 336e868

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Simulation.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,13 @@ def init_master(self):
308308
if pp.footprint_mode:
309309
if pp.N_turns!=pp.N_turns_target:
310310
raise ValueError('In footprint mode you need to set N_turns_target=N_turns_per_run!')
311-
311+
312+
check_for_resubmit = True
313+
if hasattr(pp, 'check_for_resubmit'):
314+
check_for_resubmit = pp.check_for_resubmit
312315
import PyPARIS_sim_class.Save_Load_Status as SLS
313-
SimSt = SLS.SimulationStatus(N_turns_per_run=pp.N_turns, check_for_resubmit = True, N_turns_target=pp.N_turns_target)
316+
SimSt = SLS.SimulationStatus(N_turns_per_run=pp.N_turns, check_for_resubmit=check_for_resubmit,
317+
N_turns_target=pp.N_turns_target)
314318
SimSt.before_simulation()
315319
self.SimSt = SimSt
316320

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:-)

0 commit comments

Comments
 (0)