Skip to content

Commit 664d0e5

Browse files
committed
fixed bug in recon trimming
1 parent f2b0dc5 commit 664d0e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

niftypet/nipet/img/pipe.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ def mmrchain(
147147
fout = os.path.basename(fout)
148148
# > get rid of extension
149149
fout = fout.split('.')[0]
150+
else:
151+
if 'lm_dcm' in datain:
152+
fout = os.path.basename(datain['lm_dcm']).split('.')[0]
153+
else:
154+
fout = 'NiftyPET_recon'
150155

151156
# folder for co-registered mu-maps (for motion compensation)
152157
fmureg = os.path.join(fmudir, 'registered')

0 commit comments

Comments
 (0)