def compute_readout(params):
 epi_factor = 1.0
 acc_factor = 1.0
 try:
  if (params[u'epi_factor'] > 1):
   epi_factor = float((params[u'epi_factor'] - 1))
 except:
  pass
 try:
  if (params[u'acc_factor'] > 1):
   acc_factor = (1.0 / params[u'acc_factor'])
 except:
  pass
 return ((acc_factor * epi_factor) * params[u'echospacing'])

def compute_readout ( params ) : epi_factor = 1.0 acc_factor = 1.0 try : if ( params [ u'epi_factor' ] > 1 ) : epi_factor = float ( ( params [ u'epi_factor' ] - 1 ) ) except : pass try : if ( params [ u'acc_factor' ] > 1 ) : acc_factor = ( 1.0 / params [ u'acc_factor' ] ) except : pass return ( ( acc_factor * epi_factor ) * params [ u'echospacing' ] )
computes readout time from epi params .