Skip to content

Commit fb70ba6

Browse files
committed
syntax fix
1 parent fd310ee commit fb70ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nrrd2wlzDom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ def query_yes_no(question, default="yes"):
7575

7676
print 'Compiling...'
7777

78-
subprocess.call('%sWlzSetVoxelSize -x%s -y%s -z%s %s >%s_E' % (wlzdir, Vsize, Vsize, Zsize, Tfile, Tfile), shell=True)
78+
subprocess.call('%sWlzSetVoxelSize -x%s -y%s -z%s %s >%s' % (wlzdir, Vsize, Vsize, Zsize, Tfile, Tfile.replace('.wlz','_E.wlz')), shell=True)
7979

8080
#subprocess.call('find %s0*_dom.wlz -size -2b | xargs rm -f'% (Fpre), shell=True)
8181

82-
subprocess.call('cat %s_E %s0*_dom.wlz | %sWlzCompound >out.wlz'% (Tfile, Fpre, wlzdir), shell=True)
82+
subprocess.call('cat %s %s0*_dom.wlz | %sWlzCompound >out.wlz'% (Tfile.replace('.wlz','_E.wlz'), Fpre, wlzdir), shell=True)
8383

8484
print 'Result saved to out.wlz'

0 commit comments

Comments
 (0)