We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
derivatives
1 parent 0b5c504 commit 878d4feCopy full SHA for 878d4fe
bidscoin/bids.py
@@ -1307,6 +1307,14 @@ def get_derivatives(datatype: str) -> list:
1307
else:
1308
typegroups = _DATATYPE_CACHE[datatype]
1309
return typegroups[1]['suffixes'] # The qMRI data (maps)
1310
+ elif datatype == 'fmap':
1311
+ if datatype not in _DATATYPE_CACHE:
1312
+ with (schema_folder/'datatypes'/'fmap.yaml').open('r') as stream:
1313
+ typegroups = yaml.load(stream)
1314
+ _DATATYPE_CACHE[datatype] = typegroups
1315
+ else:
1316
+ typegroups = _DATATYPE_CACHE[datatype]
1317
+ return [suffix for n,typegroup in enumerate(typegroups) for suffix in typegroup['suffixes'] if n>1] # The non-standard fmaps (file collections)
1318
1319
return []
1320
0 commit comments