Skip to content

Commit

Permalink
ge
Browse files Browse the repository at this point in the history
  • Loading branch information
baxpr committed Apr 11, 2024
1 parent 33a42c8 commit 97d896a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/slicetiming_ABIDE.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
elif site=='UCLA':
ordering = 'Siemens_interleaved_k'
elif site=='UM':
ordering = 'GE_interleaved4_even_k'
ordering = 'GE_interleaved_k'
elif site=='USM':
ordering = 'Siemens_interleaved_k'
elif site=='Yale':
Expand Down
8 changes: 5 additions & 3 deletions src/update_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@
jobj['SliceTiming'][0::2] = basetimes[0:math.ceil(nslices/2)]
jobj['SliceTiming'][1::2] = basetimes[math.ceil(nslices/2):]

elif args.slicetiming in ['GE_interleaved4_even_k']:
# FIXME how to get this ordering?
raise Exception(f'Cannot handle slice timing of {args.slicetiming}')
elif args.slicetiming in ['GE_interleaved_k']:
jobj['SliceEncodingDirection'] = 'k'
jobj['SliceTiming'] = [0 for x in basetimes]
jobj['SliceTiming'][0::2] = basetimes[0:math.ceil(nslices/2)]
jobj['SliceTiming'][1::2] = basetimes[math.ceil(nslices/2):]

elif args.slicetiming in ['none']:
print('No slice timing information added to .json (slicetiming = none)')
Expand Down

0 comments on commit 97d896a

Please sign in to comment.