From 61e0d841692b48f1a9410fcdacb51028878ff9c8 Mon Sep 17 00:00:00 2001 From: Xavier Garrido Date: Thu, 12 Oct 2023 21:24:27 +0200 Subject: [PATCH] Fix cobaya obsolete theory attribute --- mflike/mflike.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mflike/mflike.py b/mflike/mflike.py index 425e81c..56af65a 100644 --- a/mflike/mflike.py +++ b/mflike/mflike.py @@ -110,7 +110,7 @@ def get_requirements(self): return dict(Cl={k: max(c, self.lmax_theory + 1) for k, c in self.lcuts.items()}) def logp(self, **params_values): - cl = self.theory.get_Cl(ell_factor=True) + cl = self.provider.get_Cl(ell_factor=True) params_values_nocosmo = { k: params_values[k] for k in self.expected_params_fg + self.expected_params_nuis } diff --git a/setup.py b/setup.py index 35d0ebb..fdd593e 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ install_requires=[ "fgspectra>=1.1.0", "syslibrary>=0.1.0", - "cobaya>=3.3.0", + "cobaya>=3.4.1", "sacc>=0.9.0", ], package_data={"mflike": ["MFLike.yaml"]},