示例#1
0
 def get_storage_scheme():
     '''Returns acquisition data storage scheme.
     '''
     handle = pygadgetron.cGT_getAcquisitionsStorageScheme()
     check_status(handle)
     scheme = pyiutil.charDataFromHandle(handle)
     pyiutil.deleteDataHandle(handle)
     return scheme
示例#2
0
 def value_of_gadget_property(self, id, prop):
     '''
     Returns the string representation of the value of specified property.
     id  : gadget id
     prop: property name (string)
     '''
     hg = _parameterHandle(self.handle, 'gadget_chain', id)
     hv = _parameterHandle(hg, 'gadget', prop)
     value = pyiutil.charDataFromHandle(hv)
     pyiutil.deleteDataHandle(hg)
     pyiutil.deleteDataHandle(hv)
     return value
示例#3
0
def char_par(handle, group, par):
    h = parameter(handle, group, par)
    check_status(h)
    value = pyiutil.charDataFromHandle(h)
    pyiutil.deleteDataHandle(h)
    return value
示例#4
0
def _char_par(handle, set, par):
    h = pygadgetron.cGT_parameter(handle, set, par)
    check_status(h)
    value = pyiutil.charDataFromHandle(h)
    pyiutil.deleteDataHandle(h)
    return value