def _check_twodkey(self, inkey):
    'Check the length of the a field dependent keyword\n\n        Field dependent keywords such as the polynimial\n        coefficients in the trace description and dispersion\n        solution must have a certain number of values,\n        which is:\n        n = m^2/2 + m/2\n        The method checks whether the number of values\n        is in agreement with this.\n\n        @param inkey: the keyword name\n        @type inkey: ConfListKey\n\n        @return: 1/0\n        @rtype: int\n        '
    n = float(len(inkey.kvallist))
    m = (((- 1.0) + math.sqrt((1.0 + (8.0 * n)))) / 2.0)
    if (math.fabs((m - int(m))) > 1e-16):
        return 0
    return 1
Check the length of the a field dependent keyword

Field dependent keywords such as the polynimial
coefficients in the trace description and dispersion
solution must have a certain number of values,
which is:
n = m^2/2 + m/2
The method checks whether the number of values
is in agreement with this.

@param inkey: the keyword name
@type inkey: ConfListKey

@return: 1/0
@rtype: int
def _check_twodkey(self, inkey):
    'Check the length of the a field dependent keyword\n\n        Field dependent keywords such as the polynimial\n        coefficients in the trace description and dispersion\n        solution must have a certain number of values,\n        which is:\n        n = m^2/2 + m/2\n        The method checks whether the number of values\n        is in agreement with this.\n\n        @param inkey: the keyword name\n        @type inkey: ConfListKey\n\n        @return: 1/0\n        @rtype: int\n        '
    n = float(len(inkey.kvallist))
    m = (((- 1.0) + math.sqrt((1.0 + (8.0 * n)))) / 2.0)
    if (math.fabs((m - int(m))) > 1e-16):
        return 0
    return 1