You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, it tried to rename sub-03_ses-1_task-rest_acq-multiecho_run-02_echo-1_part-mag_bold.nii.gz to sub-03_ses-1_task-rest_acq-multiechoVARIANTNumVolumes_run-002_bold.nii.gz. Note the shift from one leading zero to two.
This seems to be due to this section of CuBIDS.change_filename:
In my case, it tried to rename
sub-03_ses-1_task-rest_acq-multiecho_run-02_echo-1_part-mag_bold.nii.gz
tosub-03_ses-1_task-rest_acq-multiechoVARIANTNumVolumes_run-002_bold.nii.gz
. Note the shift from one leading zero to two.This seems to be due to this section of
CuBIDS.change_filename
:CuBIDS/cubids/cubids.py
Lines 392 to 393 in b8f5d47
EDIT: This only happens if the run entity includes leading zeroes. Also, it doesn't account for multiple leading zeroes.
The text was updated successfully, but these errors were encountered: