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.
2 parents be86828 + 8f06fad commit 644c439Copy full SHA for 644c439
heudiconv/bids.py
@@ -137,8 +137,9 @@ def tuneup_bids_json_files(json_files):
137
json_basename = '_'.join(jsonfile.split('_')[:-1])
138
# if we got by now all needed .json files -- we can fix them up
139
# unfortunately order of "items" is not guaranteed atm
140
- if len(glob(json_basename + '*.json')) == 3:
141
- json_phasediffname = json_basename + '_phasediff.json'
+ json_phasediffname = json_basename + '_phasediff.json'
+ json_mag = json_basename + '_magnitude*.json'
142
+ if op.exists(json_phasediffname) and len(glob(json_mag)) >= 1:
143
json_ = load_json(json_phasediffname)
144
# TODO: we might want to reorder them since ATM
145
# the one for shorter TE is the 2nd one!
0 commit comments