Esempio n. 1
0
 def calculate(self, acqs):
     if acqs.is_sorted() is False:
         print('WARNING: acquisitions may be in a wrong order')
     if self.handle is not None:
         pygadgetron.deleteObject(self.handle)
     self.handle = pygadgetron.cGT_CoilSensitivities('')
     _check_status(self.handle)
     _set_int_par\
         (self.handle, 'coil_sensitivity', 'smoothness', self.smoothness)
     handle = pygadgetron.cGT_computeCoilSensitivities\
         (self.handle, acqs.handle)
     _check_status(handle)
     pygadgetron.deleteDataHandle(handle)
Esempio n. 2
0
 def read(self, file):
     if self.handle is not None:
         pygadgetron.deleteObject(self.handle)
     self.handle = pygadgetron.cGT_CoilSensitivities(file)
     _check_status(self.handle)