original_docstring: Make 'rp' recon parameters dictionary
  
              Reconpar is the main parameter repository of the whole Aloha
              framework. It goes into almost all utility functions during
              recon.
              
docstring: Make 'rp' recon parameters dictionary
  Reconpar is the main parameter repository of the whole Aloha
  framework. It goes into almost all utility functions during
  recon.
docstring_tokens: Make ' rp ' recon parameters dictionary Reconpar is the main parameter repository of the whole Aloha framework . It goes into almost all utility functions during recon .
code: def _get_reconpar(recontype,reconpar,kspace_shape):
              """Make 'rp' recon parameters dictionary
  
              Reconpar is the main parameter repository of the whole Aloha
              framework. It goes into almost all utility functions during
              recon.
              """
  
              #TODO maybe make a procpar parameter of this?
              if reconpar == None:
  
                  if recontype == 'k-t':
                      filter_size = (7,5)
                      cs_dim = (vj.config['pe_dim'],vj.config['slc_dim'])
                      ro_dim = vj.config['ro_dim']
                      stages = 3
                      fiber_shape = (kspace_shape[vj.config['rcvr_dim']],\
                                      kspace_shape[vj.config['pe_dim']],\
                                      kspace_shape[vj.config['et_dim']])
                  elif recontype in ['kx-ky']:
                      filter_size = (21,21)
                      cs_dim = (vj.config['pe_dim'],vj.config['pe2_dim'])
                      ro_dim = vj.config['ro_dim']
                      stages = 3
                      fiber_shape = (kspace_shape[vj.config['rcvr_dim']],\
                                      kspace_shape[vj.config['pe_dim']],\
                                      kspace_shape[vj.config['pe2_dim']])
                  elif recontype in ['kx-ky_angio']:
                      filter_size = (21,21)
                      cs_dim = (vj.config['pe_dim'],vj.config['pe2_dim'])
                      ro_dim = vj.config['ro_dim']
                      stages = 1
                      fiber_shape = (kspace_shape[vj.config['rcvr_dim']],\
                                      kspace_shape[vj.config['pe_dim']],\
                                      kspace_shape[vj.config['pe2_dim']])
                  elif recontype in ['k']:
                      filter_size = 15
                      cs_dim = (vj.config['pe_dim'])
                      ro_dim = vj.config['ro_dim']
                      stages = 3
                      fiber_shape = (kspace_shape[vj.config['rcvr_dim']],\
                                      kspace_shape[vj.config['pe_dim']])
                  else:
                      raise(Exception('Not implemented'))
  
                  # initialize reconstruction parameters for the whole Aloha
                  rp = {'filter_size' : filter_size ,\
                              'cs_dim' : cs_dim ,\
                              'ro_dim' : ro_dim, \
                              'rcvrs' : self.p['rcvrs'].count('y') , \
                              'recontype' : recontype,\
                              'timedim' : vj.config['et_dim'],\
                              'stages' : stages,\
                              'fiber_shape':fiber_shape,\
                              'virtualcoilboost' : vj.config['vcboost'],\
                              'solver' : 'lmafit'}
                  return rp
      
              else:
                  rp_keys = ['filter_size','cs_dim','ro_dim','rcvrs','recontype',\
                          'timedim','stages','virtualcoilboost','solver']
                  # check if dictionary is complete
                  for key in rp_keys:
                      if key in reconpar.keys():
                          pass
                      else:
                          raise(Exception('Reconpar key {} not given').format(key))
  
                  return reconpar
code_tokens: def _get_reconpar ( recontype , reconpar , kspace_shape ) : if reconpar == None : if recontype == 'k-t' : filter_size = ( 7 , 5 ) cs_dim = ( vj . config [ 'pe_dim' ] , vj . config [ 'slc_dim' ] ) ro_dim = vj . config [ 'ro_dim' ] stages = 3 fiber_shape = ( kspace_shape [ vj . config [ 'rcvr_dim' ] ] , kspace_shape [ vj . config [ 'pe_dim' ] ] , kspace_shape [ vj . config [ 'et_dim' ] ] ) elif recontype in [ 'kx-ky' ] : filter_size = ( 21 , 21 ) cs_dim = ( vj . config [ 'pe_dim' ] , vj . config [ 'pe2_dim' ] ) ro_dim = vj . config [ 'ro_dim' ] stages = 3 fiber_shape = ( kspace_shape [ vj . config [ 'rcvr_dim' ] ] , kspace_shape [ vj . config [ 'pe_dim' ] ] , kspace_shape [ vj . config [ 'pe2_dim' ] ] ) elif recontype in [ 'kx-ky_angio' ] : filter_size = ( 21 , 21 ) cs_dim = ( vj . config [ 'pe_dim' ] , vj . config [ 'pe2_dim' ] ) ro_dim = vj . config [ 'ro_dim' ] stages = 1 fiber_shape = ( kspace_shape [ vj . config [ 'rcvr_dim' ] ] , kspace_shape [ vj . config [ 'pe_dim' ] ] , kspace_shape [ vj . config [ 'pe2_dim' ] ] ) elif recontype in [ 'k' ] : filter_size = 15 cs_dim = ( vj . config [ 'pe_dim' ] ) ro_dim = vj . config [ 'ro_dim' ] stages = 3 fiber_shape = ( kspace_shape [ vj . config [ 'rcvr_dim' ] ] , kspace_shape [ vj . config [ 'pe_dim' ] ] ) else : raise ( Exception ( 'Not implemented' ) ) rp = { 'filter_size' : filter_size , 'cs_dim' : cs_dim , 'ro_dim' : ro_dim , 'rcvrs' : self . p [ 'rcvrs' ] . count ( 'y' ) , 'recontype' : recontype , 'timedim' : vj . config [ 'et_dim' ] , 'stages' : stages , 'fiber_shape' : fiber_shape , 'virtualcoilboost' : vj . config [ 'vcboost' ] , 'solver' : 'lmafit' } return rp else : rp_keys = [ 'filter_size' , 'cs_dim' , 'ro_dim' , 'rcvrs' , 'recontype' , 'timedim' , 'stages' , 'virtualcoilboost' , 'solver' ] for key in rp_keys : if key in reconpar . keys ( ) : pass else : raise ( Exception ( 'Reconpar key {} not given' ) . format ( key ) ) return reconpar
short_docstring: Make 'rp' recon parameters dictionary
  Reconpar is the main parameter repository of the whole Aloha
  framework.
short_docstring_tokens: Make ' rp ' recon parameters dictionary Reconpar is the main parameter repository of the whole Aloha framework .
comment: """Make 'rp' recon parameters dictionary
  
              Reconpar is the main parameter repository of the whole Aloha
              framework. It goes into almost all utility functions during
              recon.
              """$SEP$#TODO maybe make a procpar parameter of this?$SEP$# initialize reconstruction parameters for the whole Aloha$SEP$# check if dictionary is complete