Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Convert absolute path to relative path in matlab file ? #1

Open
cyril-data opened this issue Dec 16, 2022 · 2 comments
Open
Labels
bug Something isn't working

Comments

@cyril-data
Copy link
Collaborator

cyril-data commented Dec 16, 2022

batch name and line

In bids_prov/tests/samples_test/batch_example_spm.m, line 6 :

matlabbatch{1}.cfg_basicio.file_dir.file_ops.file_move.files = {'/storage/essicd/data/NIDM-Ex/BIDS_Data/DATA/BIDS/ds011/sub-01/func/sub-01_task-tonecounting_bold.nii.gz'};

What happened?

Where can we cut the string :

/storage/essicd/data/NIDM-Ex/BIDS_Data/DATA/BIDS/ds011/sub-01/func/sub-01_task-tonecounting_bold.nii.gz

for relative path conversion ?

Describe the expected ground-truth ?

The expected ground-truth : Don't know: this is the question

  • ds011/sub-01/anat/sub-01_T1w.nii.gz ?
  • sub-01/anat/sub-01_T1w.nii.gz ?

What soft is concerned

SPM
@cmaumet

@cyril-data cyril-data added the bug Something isn't working label Dec 16, 2022
@hermann74
Copy link
Collaborator

are they relative to the directory where matlab batch.m is parsed in jsonld ?

@thomasbtnfr
Copy link
Collaborator

Currently, the path used is the one indicated in the .m file without modification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants