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

Noise test update #203

Merged
merged 2 commits into from
May 21, 2019
Merged

Noise test update #203

merged 2 commits into from
May 21, 2019

Conversation

nkern
Copy link
Member

@nkern nkern commented May 12, 2019

Minor updates

1.) This updates how the sqrt(2) factor is propagated in our P_N calculation to make it more clear to the user. Before this was done only at the highest level, class method UVPSpec.generate_noise_spectra via the real=True kwarg. Now this is done at the lowest level, noise.calc_P_N function via the component='real' kwarg. The component='real' kwarg is then propagated through to the generate_noise_spectra method.

2.) This updates the metric we use to validate P_N in test_noise.py (RMS now instead of a standard deviation). the two are equivalent in this particular case (the reason why there was no test failure before), but the former is in principle more appropriate.

nkern added 2 commits May 11, 2019 22:28
	modified:   hera_pspec/noise.py
	modified:   hera_pspec/tests/test_noise.py
	modified:   hera_pspec/tests/test_uvpspec.py
	modified:   hera_pspec/uvpspec.py
	modified:   tests/test_noise.py
	modified:   tests/test_uvpspec.py
@ghost ghost assigned nkern May 12, 2019
@ghost ghost added the in progress label May 12, 2019
@nkern nkern requested a review from philbull May 12, 2019 19:38
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0009%) to 96.475% when pulling 2d102e5 on noise_test_update into 9fe0576 on master.

Copy link
Collaborator

@philbull philbull left a comment

Choose a reason for hiding this comment

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

Looks good to me! Merging.

@philbull philbull merged commit 3132ad5 into master May 21, 2019
@philbull philbull deleted the noise_test_update branch May 21, 2019 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants