def var_query(self, details):
    'Returns the answer to a query on variable\n    \n    Returns the answer to a query on the specified variable using netio\n    \n    Args:\n      details: {"query": string} \n    '
    if ('query' not in details):
        raise Exception('query not specified')
    if (details['query'] not in self.var_queries.keys()):
        raise Exception(('query not supported. Must be one of: ' + ','.join(self.var_queries.keys())))
    code = self.var_queries[details['query']]
    if (type(code) == int):
        val = self._get_var(code)
    elif (type(code) == tuple):
        val = [self._get_var(c) for c in code]
    else:
        raise Exception('Internal Exception: variable code is not valid')
    return val
Returns the answer to a query on variable

Returns the answer to a query on the specified variable using netio

Args:
  details: {"query": string}
def var_query(self, details):
    'Returns the answer to a query on variable\n    \n    Returns the answer to a query on the specified variable using netio\n    \n    Args:\n      details: {"query": string} \n    '
    if ('query' not in details):
        raise Exception('query not specified')
    if (details['query'] not in self.var_queries.keys()):
        raise Exception(('query not supported. Must be one of: ' + ','.join(self.var_queries.keys())))
    code = self.var_queries[details['query']]
    if (type(code) == int):
        val = self._get_var(code)
    elif (type(code) == tuple):
        val = [self._get_var(c) for c in code]
    else:
        raise Exception('Internal Exception: variable code is not valid')
    return val