`sidecar_changes` do not fetch all matches of the referenced description
bpinsard opened this issue · 0 comments
bpinsard commented
In a config file with these 2 descriptions, the IntendedFor of the fieldmap (2nd) only points to the 1st file matched by the func (1st) description, eg. the run-1 ignoring the remaining runs.
{
"id": "id_task",
"datatype": "func",
"suffix": "bold",
"criteria": {
"SeriesDescription": "func_task-bibabo_run-*",
"ImageType": ["ORIGINAL", "PRIMARY", "M", "MB", "ND", "MOSAIC"],
"ImageComments": "Unaliased MB4/PE3/LB*"
},
"custom_entities": ["run", "task", "dir", "part-mag"]
},
{
"datatype": "fmap",
"suffix": "epi",
"sidecar_changes": {
"IntendedFor": "id_task"
},
"criteria": {
"SeriesDescription": "func_AP_run-1",
"ImageType": ["ORIGINAL", "PRIMARY", "M", "MB", "ND", "MOSAIC"]
},
"custom_entities": ["run", "dir"]
},