shimming-toolbox / shimming-toolbox-matlab

Code for performing real-time shimming using external MRI shim coils
GNU General Public License v3.0
16 stars 5 forks source link

Modify MaRdI.sortimages to avoid re-sorting previously sorted images #48

Closed evaalonsoortiz closed 4 years ago

evaalonsoortiz commented 4 years ago

When MaRdI.sortimages is run (with boolean option 1), it will copy files and sort files, regardless of what files are already in the working folder. This means that when you are scanning, if you copy and sort files, then acquire more scans, you have to delete everything that was already copied/sorted before running MaRdI.sortimages again to avoid duplicates. This should be changed so that MaRdI.sortimages verifies what files are in the working folder and does not copy/sort those files again.

evaalonsoortiz commented 4 years ago

This issue will be closed because MaRdI.sortimages can be used with an option to move all unsorted images. If that is done, then the next time unsorted images are added to the mounted drive (new acquisitions), only those will be sorted and moved over.