-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcallProcess.py
More file actions
31 lines (22 loc) · 1.04 KB
/
Copy pathcallProcess.py
File metadata and controls
31 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from subprocess import Popen, PIPE, STDOUT
## test command: python volumeViewConverter.py C:\Users\George\Desktop\testRun\george_1color C:\Users\George\Desktop\testRun\results2 200 1 45 False False False False 1
scriptPath = "C:\\Users\\George\\.FLIKA\\plugins\\onTheFly_Reconstruction\\volumeViewConverter.py"
recordingFolder = "C:\\Users\\George\\Desktop\\testRun\\george_1color"
exportFolder = "C:\\Users\\George\\Desktop\\testRun\\results2"
nSteps = "200"
shift_factor = "1"
theta = "45"
triangle_scan = "False"
interpolate = "False"
trim_last_frame = "False"
zscan = "False"
nChannels = "1"
volume = "2"
args = nSteps + ' ' + shift_factor + ' ' + theta + ' ' + triangle_scan + ' ' + interpolate + ' ' + trim_last_frame + ' ' + zscan + ' ' + nChannels + ' ' + volume + ' ' + recordingFolder + ' ' + exportFolder
cmd = 'python' + ' ' + scriptPath + ' ' + args
#cmd = 'python' + ' ' + scriptPath
p = Popen(cmd)
#to get widow output
#p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
#output = p.stdout.read()
#print (output)