Skip to content

Commit

Permalink
readouttime
Browse files Browse the repository at this point in the history
  • Loading branch information
baxpr committed Aug 8, 2024
1 parent 4a9e2c4 commit c9267be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/update_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@
if not jobj['Manufacturer'].startswith('Philips'):
raise Exception(f'Manufacturer is {jobj["Manufacturer"]} - expecting Philips')

jobj['TotalReadoutTime'] = jobj['EstimatedTotalReadoutTime']
if not 'TotalReadoutTime' in jobj:
if 'EstimatedTotalReadoutTime' in jobj:
jobj['TotalReadoutTime'] = jobj['EstimatedTotalReadoutTime']
else:
jobj['TotalReadoutTime'] = 0
print('WARNING - no TotalReadoutTime or EstimatedTotalReadoutTime found - using 0')

if args.polarity=='+':
jobj['PhaseEncodingDirection'] = jobj['PhaseEncodingAxis']
Expand Down

0 comments on commit c9267be

Please sign in to comment.