OpenImaging / miqa-phase1

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

MIQA server sessions endpoint doesn't use 'imagepattern' correctly #106

Open curtislisle opened 3 years ago

curtislisle commented 3 years ago

the getSessions endpoint in the MIQA server doesn't find datasets if the filename doesn't end with .nii.gz. In particular, the imagePattern should be used here instead of the hard-coded regex: https://github.com/OpenImaging/miqa/blob/57fdc5fee5dff86a01539a1055d3442637ff1785/server/miqa_server/session.py#L117

scottwittenburg commented 3 years ago

When I wrote the json data model, I intended to put imagePattern there instead of nii.gz$, and thought I had done so, but must not have :shrug:. I think the fix is as simple as just making that replacement and testing that it behaves as expected.