From b3e59a85f9eda4286790546ebb0c7cd339b81a5c Mon Sep 17 00:00:00 2001 From: Christoph Knote <christoph.knote@lmu.de> Date: Wed, 27 Jan 2021 13:47:10 +0000 Subject: [PATCH] Do not run if already running in asynch mode --- boxmox/experiment.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boxmox/experiment.py b/boxmox/experiment.py index d785dbe..fb99fb4 100644 --- a/boxmox/experiment.py +++ b/boxmox/experiment.py @@ -227,6 +227,10 @@ class Experiment: :param bool dumbOutput: Only load references to output files, instead of loading data? (faster, but not usable for analysis) :param bool asynchronous: Run asynchronous? ''' + if asynchronous: + if self.running: + return + self.namelist.write(os.path.join(self.path, 'BOXMOX.nml')) for type in self.input: -- GitLab