def GetMovingImages(ListOfImagesDictionaries, registrationImageTypes, interpolationMapping):
 if (len(registrationImageTypes) != 1):
  print('ERROR:  Multivariate imageing not supported yet!')
  return []
 moving_images = [mdict[registrationImageTypes[0]] for mdict in ListOfImagesDictionaries]
 moving_interpolation_type = interpolationMapping[registrationImageTypes[0]]
 return (moving_images, moving_interpolation_type)

def GetMovingImages ( ListOfImagesDictionaries , registrationImageTypes , interpolationMapping ) : if ( len ( registrationImageTypes ) != 1 ) : print ( 'ERROR:  Multivariate imageing not supported yet!' ) return [ ] moving_images = [ mdict [ registrationImageTypes [ 0 ] ] for mdict in ListOfImagesDictionaries ] moving_interpolation_type = interpolationMapping [ registrationImageTypes [ 0 ] ] return ( moving_images , moving_interpolation_type )
this currently only works when registrationimagetypes has length of exactly 1 .