Skip to content

Commit

Permalink
Fix the cleanup argument
Browse files Browse the repository at this point in the history
  • Loading branch information
isebenius committed Feb 13, 2023
1 parent 0833ee6 commit e1a2392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions register_and_vol2surf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def register_and_vol2surf(mov, subject_id, out_dir, b0 = None, feature_name = 'v
cleanup: boolean, whether to delete all intermediate files or not.
'''

out_reg_file = out_dir + '/' + feature_name + '-T1-reg.lta'
out_reg_file = out_dir + '/' + feature_name + '-T1-reg.dat'

if b0 == None:
b0 == mov
Expand Down Expand Up @@ -68,7 +68,7 @@ def calculate_surface_t1t2_ratio(t2_loc, subject_id, out_dir, t1_loc = None, fea
cleanup: boolean, whether to delete all intermediate files or not.
'''

out_reg_file = out_dir + '/' + feature_name + '-T1-reg.lta'
out_reg_file = out_dir + '/' + feature_name + '-T1-reg.dat'
bbreg = BBRegister(subject_id=subject_id, source_file=t2_loc, init='fsl', subjects_dir=os.environ.get("SUBJECTS_DIR"), contrast_type=contrast, out_reg_file = out_reg_file)
os.system(bbreg.cmdline)
#bbregister
Expand Down

0 comments on commit e1a2392

Please sign in to comment.