def _find_twodkeys(self, prefix, ident, keylist):
    'Find the all 2D polynomial keywords\n\n        Given a prefix and a beam identifier the method\n        extracts all orders of the 2D polynomial which\n        describes the trace or dispersion. The number\n        of orders expected is taken from the object data.\n\n        Parameters\n        ----------\n        prefix: str\n            keyword prefix\n        ident: char\n            beam identification\n        keylist: list\n            list of keywords\n\n        Returns\n        -------\n        keys: list\n            list of keywords\n        '
    twodkeys = []
    for ii in range((int(self.norder.keyvalue) + 1)):
        twodkey = (((prefix + ident) + '_') + str(ii))
        newkey = self._find_key(twodkey, keylist, 1)
        if self._check_twodkey(newkey):
            twodkeys.append(newkey)
        else:
            raise CKeyLengthWrong(ident, twodkey)
    return twodkeys
Find the all 2D polynomial keywords

Given a prefix and a beam identifier the method
extracts all orders of the 2D polynomial which
describes the trace or dispersion. The number
of orders expected is taken from the object data.

Parameters
----------
prefix: str
    keyword prefix
ident: char
    beam identification
keylist: list
    list of keywords

Returns
-------
keys: list
    list of keywords
def _find_twodkeys(self, prefix, ident, keylist):
    'Find the all 2D polynomial keywords\n\n        Given a prefix and a beam identifier the method\n        extracts all orders of the 2D polynomial which\n        describes the trace or dispersion. The number\n        of orders expected is taken from the object data.\n\n        Parameters\n        ----------\n        prefix: str\n            keyword prefix\n        ident: char\n            beam identification\n        keylist: list\n            list of keywords\n\n        Returns\n        -------\n        keys: list\n            list of keywords\n        '
    twodkeys = []
    for ii in range((int(self.norder.keyvalue) + 1)):
        twodkey = (((prefix + ident) + '_') + str(ii))
        newkey = self._find_key(twodkey, keylist, 1)
        if self._check_twodkey(newkey):
            twodkeys.append(newkey)
        else:
            raise CKeyLengthWrong(ident, twodkey)
    return twodkeys