def data_type(self, im_num): ''' Returns the data type for a specified image (see 8 data types above). im_num: image (slice) ''' assert self.handle is not None handle = pygadgetron.cGT_imageDataType(self.handle, im_num) check_status(handle) n = pyiutil.intDataFromHandle(handle) pyiutil.deleteDataHandle(handle) return n
def int_par(handle, group, par): h = parameter(handle, group, par) check_status(h, inspect.stack()[1]) value = pyiutil.intDataFromHandle(h) pyiutil.deleteDataHandle(h) return value
def _int_par(handle, set, par): h = pygadgetron.cGT_parameter(handle, set, par) check_status(h) value = pyiutil.intDataFromHandle(h) pyiutil.deleteDataHandle(h) return value