trendscenter / Coinstac_VBM_computation

This algorithm runs the Voxel Based Morphometry on structural T1 weighted MRI scans using SPMv12 and MATLAB Runtimev713.
3 stars 0 forks source link

No need to check for existence #15

Closed everner-ds closed 6 years ago

everner-ds commented 6 years ago

When using shutil.rmtree, if you set ignore_errors=True, then it will do nothing and not throw an error if folder doesn't exist. Remove the if statements when using shutil.rmtree, and your code will be cleaner and easier to maintain.

https://github.com/MRN-Code/Coinstac_VBM_computation/blob/0f1b9db6567d583d9c4b67ab4664a14c1fbe87ca/vbm_use_cases_layer.py#L41