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

Implementation of correlated noise #151

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

aguinot
Copy link

@aguinot aguinot commented Jul 12, 2021

A few changements to implement correlated noise.
The way it is done, the original test should not be affected.
I have created a new pytest test_shear_meas_corr_noise.py where the correlated noise is ON by default (this can probably be adjusted).

As we discuss with @beckermr the flux of the galaxies has to be change in order to see any effect of this. It is not included in this pull request since I did not find a way to do it without hard coded something, yet.

Pylint, compatibility with original scripts (gal_rng keyword)
descwl_shear_sims/sim.py Outdated Show resolved Hide resolved
descwl_shear_sims/sim.py Outdated Show resolved Hide resolved
@@ -221,6 +233,10 @@ def make_exp(
star_bleeds=False,
sky_n_sigma=None,
draw_method='auto',
galsim_rng=None,
Copy link
Collaborator

@beckermr beckermr Sep 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not need this keyword. This is generated internally.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You right, I forgot to remove the keyword. It should not be used in the code.

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