Skip to content

Commit

Permalink
renamed config option for detector white noise for clarity. #86
Browse files Browse the repository at this point in the history
  • Loading branch information
humnaawan committed Nov 29, 2023
1 parent ea78c3f commit 2cc9d2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deepcmbsim/camb_power_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion deepcmbsim/settings/user_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cc9d2d

Please sign in to comment.