'Init of covariance.'

def __init__(self, data, names, bads, projs, nfree, eig=None, eigvec=None, method=None, loglik=None):

    diag = (True if (data.ndim == 1) else False)
    projs = _check_projs(projs)
    self.update(data=data, dim=len(data), names=names, bads=bads, nfree=nfree, eig=eig, eigvec=eigvec, diag=diag, projs=projs, kind=FIFF.FIFFV_MNE_NOISE_COV)
    if (method is not None):
        self['method'] = method
    if (loglik is not None):
        self['loglik'] = loglik
