spine-generic / data-multi-subject

Multi-subject data for the Spine Generic project
Creative Commons Attribution 4.0 International
21 stars 15 forks source link

Rename MTS suffix #135

Closed sandrinebedard closed 1 year ago

sandrinebedard commented 1 year ago

Description

This PR addresses #116 . It renames all MTS files to be BIDS compatible:

acq-MTon_MTS → flip-1_mt-on_MTS
acq-MToff_MTS → flip-1_mt-off_MTS
acq-T1w_MTS → flip-2_mt-off_MTS
mguaypaq commented 1 year ago

The change itself looks good (that is, it looks like you correctly renamed all the files). The Dataset Validator check is failing, though. I re-ran it several times because of some transient issues (scikit-learn versus sklearn in some dependency, temporary network problem while downloading from amazon), but this run looks like it's an actual issue:

sg_params_checker -path-in ./
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.7.15/x64/bin/sg_params_checker", line 11, in <module>
    load_entry_point('spinegeneric==2.5.dev0', 'console_scripts', 'sg_params_checker')()
  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/spinegeneric/cli/params_checker.py", line 86, in main
    MTS_acq = item.filename.split("_acq-")[1].split(".")[0]
IndexError: list index out of range

It looks like the params_checker is using the old filename format. I'll make a (backwards-compatible) fix upstream and re-run the Dataset Validator check for this PR after.

sandrinebedard commented 1 year ago

Is there any update on this problem? Thanks!

mguaypaq commented 1 year ago

Sorry, I haven't had time to work on fixing the Dataset Validator. But:

So, I'll override the check and merge this change now, and open a separate issue for fixing the Dataset Validator.