OpenImaging / miqa-phase1

A web application for medical imaging quality assurance
MIT License
20 stars 8 forks source link

Fix two issues importing old csv format #45

Closed scottwittenburg closed 3 years ago

scottwittenburg commented 3 years ago

When finding the common part of all the paths in the csv file, we could land in the middle of a directory name, so in that case we need to look backwards to the nearest path separator.

When the csv does not include a 'site' column, we need to use the previous logic for extracting the site name from the nifti path.

scottwittenburg commented 3 years ago

@jimklo I copied some other nifti files into a directory structure made to match the one in the csv you shared with me, and I was able to load that dataset into MIQA. Can you give this a try when you get a chance? I think it should fix the problem you are experiencing.