Skip to content

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

@cyril-data

Description

@cyril-data

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions