From 2cc9d2d71f65f5e45548d7552ae1af48cb73a56f Mon Sep 17 00:00:00 2001 From: Humna Awan Date: Wed, 29 Nov 2023 12:49:36 -0500 Subject: [PATCH] renamed config option for detector white noise for clarity. #86 --- deepcmbsim/camb_power_spectrum.py | 4 ++-- deepcmbsim/settings/user_config.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deepcmbsim/camb_power_spectrum.py b/deepcmbsim/camb_power_spectrum.py index 5984351..ca08ee2 100644 --- a/deepcmbsim/camb_power_spectrum.py +++ b/deepcmbsim/camb_power_spectrum.py @@ -63,7 +63,7 @@ def get_noise(self): provides noise for the TT power spectrum and the polarization power spectra; shape is (2, max_l_use) """ - if self.UserParams['noise_type'] == 'white': + if self.UserParams['noise_type'] == 'detector-white': t_noise = noise.detector_white_noise(self.UserParams['noise_uKarcmin'], self.UserParams['beamfwhm_arcmin'], self.max_l_use, TT=True) eb_noise = noise.detector_white_noise(self.UserParams['noise_uKarcmin'], self.UserParams['beamfwhm_arcmin'], self.max_l_use, @@ -72,7 +72,7 @@ def get_noise(self): elif self.UserParams['noise_type'] is None: return np.zeros((2, self.max_l_use)) else: - print("only detector white noise is currently implemented, via `noise_type = 'white'` in `user_config.yaml`") + print("only detector white noise is currently implemented, via `noise_type = 'detector-white'` in `user_config.yaml`") return np.zeros((2, self.max_l_use)) def get_cls(self, save_to_dict=None, user_params=True): diff --git a/deepcmbsim/settings/user_config.yaml b/deepcmbsim/settings/user_config.yaml index 227bf53..793688d 100644 --- a/deepcmbsim/settings/user_config.yaml +++ b/deepcmbsim/settings/user_config.yaml @@ -8,7 +8,7 @@ verbose: 1 normalize_cls: False #raw_cl – return Cl rather than l*(l+1)*Cl/2π (Cl alone is not conventional) TT_units: muK #return uK**2 units for the TT, EE, BB, TE Cls outfile_dir: "outfiles" -noise_type: "white" +noise_type: "detector-white" # only option for now; adds detector white noise to the output; see noise.detector_white_noise for more details. noise_uKarcmin: 5 # noise level in uK*arcmin beamfwhm_arcmin: 3 # size of beam in arcmin extra_l: 300