litebird / litebird_sim

Simulation tools for LiteBIRD
GNU General Public License v3.0
19 stars 13 forks source link

Change the default behavior of Simulation.add_noise() #349

Closed paganol closed 1 day ago

paganol commented 2 days ago

Now Simulation.add_noise() uses self.random as default random number generator. The following syntax now works:

sim.add_noise()

sim.add_noise(noise_type='white')
paganol commented 2 days ago

This short PR addresses this https://github.com/litebird/litebird_sim/pull/342#issuecomment-2485018373 I think we can quickly merge it.