From 044d69ff28ea9940a2cde8daff969e1cafccac5a Mon Sep 17 00:00:00 2001 From: sgiardie Date: Tue, 10 Oct 2023 10:27:23 +0900 Subject: [PATCH] fix mbs bug --- litebird_sim/mbs/mbs.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/litebird_sim/mbs/mbs.py b/litebird_sim/mbs/mbs.py index c6f3c2c5..b24d108d 100644 --- a/litebird_sim/mbs/mbs.py +++ b/litebird_sim/mbs/mbs.py @@ -33,7 +33,7 @@ def from_dict(dictionary): bandwidth_ghz=dictionary["bandwidth_ghz"], fwhm_arcmin=dictionary["fwhm_arcmin"], p_sens_ukarcmin=dictionary["p_sens_ukarcmin"], - band=None, + band=dictionary["band"], ) @staticmethod @@ -44,7 +44,7 @@ def from_npy(filename): bandwidth_ghz=data["freq_band"], fwhm_arcmin=data["beam"], p_sens_ukarcmin=data["p_sens"], - band=None, + band=data["band"], ) @staticmethod @@ -55,7 +55,7 @@ def from_toml(filename): bandwidth_ghz=data["freq_band"], fwhm_arcmin=data["beam"], p_sens_ukarcmin=data["p_sens"], - band=None, + band=data["band"], ) @@ -435,6 +435,8 @@ def _parse_instrument(self): p_sens_ukarcmin=p_sens_ukarcmin, ) + + def generate_noise(self): instr = self.instrument nmc_noise = self.params.nmc_noise