def __cast_int(self, kper, d):
    if (d > 0):
        raise Exception('MfList error: dict integer value for kper {0:10d} must be 0 or -1, not {1:10d}'.format(kper, d))
    if (d == 0):
        self.__data[kper] = 0
        self.__vtype[kper] = None
    else:
        self.__data[kper] = (- 1)
        self.__vtype[kper] = None
def __cast_int(self, kper, d):
    if (d > 0):
        raise Exception('MfList error: dict integer value for kper {0:10d} must be 0 or -1, not {1:10d}'.format(kper, d))
    if (d == 0):
        self.__data[kper] = 0
        self.__vtype[kper] = None
    else:
        self.__data[kper] = (- 1)
        self.__vtype[kper] = None