Skip to content

Commit bb7d327

Browse files
authored
Merge pull request #121 from acoreas/main
fix PlanTUS call on windows
2 parents 18e1cd1 + cd77a3d commit bb7d327

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
call "$1/simnibs_env/bin/activate"
2-
python "$2/PlanTUS_wrapper.py" "$3" "$4" "$5" "$6" --skip_wb_view $7 $8
1+
call "%~1/simnibs_env/Scripts/activate"
2+
python "%~2/PlanTUS_wrapper.py" "%~3" "%~4" "%~5" "%~6" --skip_wb_view %7 %8

BabelBrain/PlanTUSViewer/RunPlanTUS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def Execute(self):
309309

310310
mshPath=glob.glob(self.MainApp.Config['simbnibs_path'] + os.sep + "*.msh")[0]
311311
maskPath=Mat4Trajectory.replace('.txt','_PlanTUSMask.nii.gz')
312-
self.PlanOutputPath=os.path.split(mshPath)[0]+os.sep+'PlanTUS'+os.sep+maskPath.split(os.sep)[-1].replace('.nii.gz','')
312+
self.PlanOutputPath=os.path.split(mshPath)[0]+os.sep+'PlanTUS'+os.sep+Path(maskPath).name.replace('.nii.gz','')
313313
print('self.PlanOutputPath', self.PlanOutputPath)
314314

315315
create_target_mask(t1Path, RMat[:3,3], maskPath,raddi=raddi)

0 commit comments

Comments
 (0)