def _int_pars(handle, set, par, n): h = pygadgetron.cGT_parameter(handle, set, par) check_status(h) for i in range(n): value += (pyiutil.intDataItemFromHandle(h, i), ) pyiutil.deleteDataHandle(h) return value
def _parameterHandle(hs, set, par): handle = pygadgetron.cGT_parameter(hs, set, par) check_status(handle) return handle
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
def _float_par(handle, set, par): h = pygadgetron.cGT_parameter(handle, set, par) check_status(h) v = pyiutil.floatDataFromHandle(h) pyiutil.deleteDataHandle(h) return v