diff --git a/mflike/foreground.py b/mflike/foreground.py index ccefe61..e5b7fc7 100644 --- a/mflike/foreground.py +++ b/mflike/foreground.py @@ -7,9 +7,11 @@ If one wants to use this class as standalone, the ``bands`` dictionary is filled when initializing ``BandpowerForeground``. -The default values of the systematic parameters are set in the ``TTTEEE/TEEE/TT/EE/TE/etc.yaml`` files. They have to be named as ``cal/calT/calE/alpha`` + ``_`` + experiment_channel string (e.g. ``LAT_93/dr6_pa4_f150``). +The default values of the systematic parameters are set in the ``TTTEEE/TEEE/TT/EE/TE/etc.yaml`` files. +They have to be named as ``cal/calT/calE/alpha`` + ``_`` + experiment_channel string (e.g. ``LAT_93/dr6_pa4_f150``). The default values of the foreground parameters are set in the ``fg_TT/TE/EE.yaml`` files. -If you want to set different parameters settings, do that in the ``params`` block of the ``yaml`` file you will use for running (see the `examples/mflike_example.yaml `_). +If you want to set different parameters settings, do that in the ``params`` block of the ``yaml`` file +you will use for running (see the `examples/mflike_example.yaml `_). .. note:: Note that when you set different foregrounds/systematics parameters in the ``params`` block @@ -47,6 +49,7 @@ top_hat_band: nsteps: 1 bandwidth: 0 + """ import os diff --git a/mflike/mflike.py b/mflike/mflike.py index 58f2d40..a39da9d 100644 --- a/mflike/mflike.py +++ b/mflike/mflike.py @@ -33,7 +33,8 @@ If left ``null``, no systematic template is applied. -The values of the systematic parameters are set in the ``TTTEEE/TTTE/TT/EE/TE/etc.yaml`` files corresponding to the classes that inherit the ``_MFLike`` one. They have to be named as +The values of the systematic parameters are set in the ``TTTEEE/TTTE/TT/EE/TE/etc.yaml`` files +corresponding to the classes that inherit the ``_MFLike`` one. They have to be named as ``cal/calT/calE/alpha`` + ``_`` + experiment_channel string (e.g. ``LAT_93/dr6_pa4_f150``). """ @@ -105,7 +106,7 @@ def initialize(self): self.log.info("Initialized!") def get_fg_requirements(self): - return {"ells": self.l_bpws, + return {"ells": self.l_bpws[:self.lmax_theory + 1], "requested_cls": self.requested_cls, "experiments": self.experiments, "bands": self.bands} @@ -119,7 +120,8 @@ def get_requirements(self): """ return {"fg_totals": self.get_fg_requirements(), - "Cl": {k: max(c, self.lmax_theory + 1) for k, c in self.lcuts.items()}} + "Cl": {k: self.lmax_theory + 1 for k, _ in self.lcuts.items()}} + #"Cl": {k: max(c, self.lmax_theory + 1) for k, c in self.lcuts.items()}} def logp(self, **params_values): cl = self.provider.get_Cl(ell_factor=True)