Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

paganol
Copy link
Member

@paganol paganol commented Nov 20, 2024

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
Copy link
Member Author

paganol commented Nov 20, 2024

This short PR addresses this #342 (comment)
I think we can quickly merge it.

@ziotom78 ziotom78 merged commit 210cd82 into master Nov 21, 2024
9 checks passed
@ziotom78 ziotom78 deleted the default_random branch November 21, 2024 09:36
yusuke-takase pushed a commit that referenced this pull request Nov 23, 2024
* Simulation.add_noise uses self.random as default

* CHANGELOG updated
ziotom78 added a commit that referenced this pull request Nov 28, 2024
* angle correction for 1-detector-pointing due to wedge HWP

* Code simplifications (distructive changes) around the pointing systematics

* modifiy the `pointing_sys.py`

* add add_hwp_rot_disturb

* modify add_hwp_rot_disturb

* update documents

* add comments

* refactoring

* fix bug of __init__

* add comments

* reverse gitignore and remove cmb maps

* add detailed assertion comments

* refactor: update pointing_sys imports and __all__ exports

* destructive change on pointing_sys.py: update functionality for MPI

* update docs

* update docs, remove cmb

* fix scanning.py assertion

* merge master

* add test of hwp pointing sys

* update notebook

* Reorganize the User’s manual (#342)

* Use PyData as the default theme for docs and update Sphinx and deps

* Rework the structure of the documentation

* Merge `Bandpasses` chapter into Detector and split `Scanning`

* Remove duplicated material

* Add missing reference

* Remove spurious comma

* Fix the grammar of a few sentences

* Fix grammar and broken links, update references where needed

* example in the noise page included, argument random in Simulation.add_noise is now optional

* removed part of last commit

* [skip ci] Update CHANGELOG

---------

Co-authored-by: Luca Pagano <[email protected]>

* Focal plane visualizer and detector file generator  (#345)

* add plot_fp.py

* ask duration_yr

* CHANGELOG.md: Add entry for plot_fp.py implementation and its functionality

* update README

* add plot.fp.rst in docs

* docs: Improve formatting and clarity in plot_fp.rst

* Fix the formatting to make ruff happy

---------

Co-authored-by: Yusuke Takase <[email protected]>
Co-authored-by: Maurizio Tomasi <[email protected]>

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

* Simulation.add_noise uses self.random as default

* CHANGELOG updated

* reformat by ruff

* Update plot usage GIF in README.md

* Update focal plane visualization section header in plot_fp.rst

* Remove unused __init__.py file from pointing_sys module

* Refactor import statement in litebird_sim and adjust spin rate in simulation test

* update pointing reference file

* Add documentation for pointing systematics and introduce pointing_sys.rst

* Add author Yusuke Takase to pyproject.toml

* CHANGELOG.md: Update breaking changes for PointingSys and get_pointings functions

* refactoring for ruff

* update pointing sys notebooks

* docs: update

* remove `docs/build`

---------

Co-authored-by: Nicolò Raffuzzi <[email protected]>
Co-authored-by: Maurizio Tomasi <[email protected]>
Co-authored-by: Luca Pagano <[email protected]>
Co-authored-by: Yusuke Takase <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants