Add public cosmology and var_cosmology attributes