def _find_beamkeys(self, ident, keylist):
    'Load the global beam keywords\n\n        The method extracts all global beam keywords\n        from a keyword list. The extracted keywords are returned\n        as a list. They are removed from the input list.\n\n        Parameters\n        ----------\n        ident: char\n            beam identification\n        keylist: list\n            list of keywords\n        '
    bkeys = ['BEAM', 'MMAG_EXTRACT_', 'MMAG_MARK_', 'XOFF_', 'YOFF_', 'SENSITIVITY_']
    okeys = ['PSF_OFFSET_']
    id_keys = []
    for key in bkeys:
        id_keys.append((key + ident))
    opt_keys = []
    for key in okeys:
        opt_keys.append((key + ident))
    opt_keys.append((('DLD1P_' + ident) + '_PRANGE'))
    bkeys = []
    dindex = []
    iindex = 0
    nfound = 0
    for key in keylist:
        if (key.keyword in id_keys):
            dindex.append(iindex)
            bkeys.append(ConfKey(key.keyword, key.keyvalue, key.comment))
            nfound += 1
        elif (key.keyword in opt_keys):
            dindex.append(iindex)
            bkeys.append(ConfKey(key.keyword, key.keyvalue, key.comment))
        iindex += 1
    if (nfound < len(id_keys)):
        raise CKeyNotFound('general')
    dindex.sort()
    dindex.reverse()
    for iindex in dindex:
        del keylist[iindex]
    return bkeys
Load the global beam keywords

The method extracts all global beam keywords
from a keyword list. The extracted keywords are returned
as a list. They are removed from the input list.

Parameters
----------
ident: char
    beam identification
keylist: list
    list of keywords
def _find_beamkeys(self, ident, keylist):
    'Load the global beam keywords\n\n        The method extracts all global beam keywords\n        from a keyword list. The extracted keywords are returned\n        as a list. They are removed from the input list.\n\n        Parameters\n        ----------\n        ident: char\n            beam identification\n        keylist: list\n            list of keywords\n        '
    bkeys = ['BEAM', 'MMAG_EXTRACT_', 'MMAG_MARK_', 'XOFF_', 'YOFF_', 'SENSITIVITY_']
    okeys = ['PSF_OFFSET_']
    id_keys = []
    for key in bkeys:
        id_keys.append((key + ident))
    opt_keys = []
    for key in okeys:
        opt_keys.append((key + ident))
    opt_keys.append((('DLD1P_' + ident) + '_PRANGE'))
    bkeys = []
    dindex = []
    iindex = 0
    nfound = 0
    for key in keylist:
        if (key.keyword in id_keys):
            dindex.append(iindex)
            bkeys.append(ConfKey(key.keyword, key.keyvalue, key.comment))
            nfound += 1
        elif (key.keyword in opt_keys):
            dindex.append(iindex)
            bkeys.append(ConfKey(key.keyword, key.keyvalue, key.comment))
        iindex += 1
    if (nfound < len(id_keys)):
        raise CKeyNotFound('general')
    dindex.sort()
    dindex.reverse()
    for iindex in dindex:
        del keylist[iindex]
    return bkeys