@classmethod
def from_file(cls, filename, **kwargs):
    """
        Initialize a :class:`Cosmology` object from the CLASS parameter file

        Parameters
        ----------
        filename : str
            the name of the parameter file to read
        **kwargs :
            extra keyword parameters to pass when initializing;
            they shall not be in conflict with the parameters
            inferred from cosmo. To override parameters,
            chain the result with :func:`clone`.
        """
    from classylss import load_ini
    pars = load_ini(filename)
    pars.update(kwargs)
    return cls.from_dict(pars)
