From 3efb237452a060f3b2de76affcab0b92c96e84ea Mon Sep 17 00:00:00 2001 From: Marcel Paffrath Date: Thu, 4 Aug 2016 10:35:09 +0200 Subject: [PATCH] fix: wait for process obsdata (p.wait()) --- pylot/core/active/fmtomoUtils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylot/core/active/fmtomoUtils.py b/pylot/core/active/fmtomoUtils.py index 19be28b0..7fc5cfb6 100644 --- a/pylot/core/active/fmtomoUtils.py +++ b/pylot/core/active/fmtomoUtils.py @@ -50,13 +50,14 @@ class Tomo3d(object): def buildObsdata(self): p = subprocess.Popen(os.path.join(self.cwd, 'obsdata'), shell=True) - os.waitpid(p.pid) + p.wait() os.system('mv sources.in sourcesref.in') def defFMMParas(self): ''' Initiates parameters for the forward calculation. ''' + # Comments coppied from FMTOMO. # Name of fast marching program self.fmm = os.path.join(self.cwd, 'fm3d') # Name of program calculating Frechet derivatives