From 0913151ee64b90349b7caa017d8e71541a22200f Mon Sep 17 00:00:00 2001 From: madsmpedersen <m@madsp.dk> Date: Thu, 7 Apr 2016 11:05:18 +0200 Subject: [PATCH] thread -> non_blocking_simulation_thread --- wetb/hawc2/cluster_simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetb/hawc2/cluster_simulation.py b/wetb/hawc2/cluster_simulation.py index c923074b..ea5a78bb 100644 --- a/wetb/hawc2/cluster_simulation.py +++ b/wetb/hawc2/cluster_simulation.py @@ -8,7 +8,7 @@ class ClusterSimulation(Simulation): Simulation.__init__(self, modelpath, htcfilename, hawc2exe=hawc2exe) self.simulation_id = [f for f in os.listdir('.') if f.endswith('.in')][0][:-3] self.resource.simulationThread.low_priority = False - self.thread = Thread(target=self.simulate) + self.non_blocking_simulation_thread = Thread(target=self.simulate) self.start(1) self.wait() print (self.resource.simulationThread.res[1]) # print hawc2 output to stdout -- GitLab