def __cast_ndarray(self, kper, d):
    d = np.atleast_2d(d)
    if (d.dtype != self.__dtype):
        assert (d.shape[1] == len(self.dtype)), ((((('MfList error: ndarray ' + 'shape ') + str(d.shape)) + " doesn't match dtype ") + 'len: ') + str(len(self.dtype)))
    try:
        self.__data[kper] = np.core.records.fromarrays(d.transpose(), dtype=self.dtype)
    except Exception as e:
        raise Exception(('MfList error: casting ndarray to recarray: ' + str(e)))
    self.__vtype[kper] = np.recarray
def __cast_ndarray(self, kper, d):
    d = np.atleast_2d(d)
    if (d.dtype != self.__dtype):
        assert (d.shape[1] == len(self.dtype)), ((((('MfList error: ndarray ' + 'shape ') + str(d.shape)) + " doesn't match dtype ") + 'len: ') + str(len(self.dtype)))
    try:
        self.__data[kper] = np.core.records.fromarrays(d.transpose(), dtype=self.dtype)
    except Exception as e:
        raise Exception(('MfList error: casting ndarray to recarray: ' + str(e)))
    self.__vtype[kper] = np.recarray