-
Notifications
You must be signed in to change notification settings - Fork 340
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
Normalize wavevector in thomson.spectral_density() #1190
Conversation
Function output is tested against a few fixed values: this one breaks with this fix.
Codecov Report
@@ Coverage Diff @@
## main #1190 +/- ##
=======================================
Coverage ? 96.98%
=======================================
Files ? 71
Lines ? 7023
Branches ? 0
=======================================
Hits ? 6811
Misses ? 212
Partials ? 0 Continue to review full report at Codecov.
|
@rocco8773 This is a small bugfix, but since it does actually change the output of the function I'll wait to merge it until you take a look. The one failing test seems to be unrelated: Thanks to @bryancfoo for spotting this error! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bryancfoo This looks good to me! Thank you! The failing checks are not related to any of the changes you made, so I'm going to merge the PR.
@StanczakDominik The predominate failing checks here are related to the hypothesis tests on Chandrasekhar G. I'm not sure of the cause because the tests passing/failing is sporadic. Thoughts?
In calculation of the spectral density, wavevector k_vec was not unit normalized. Proper normalization noticeably changes the resultant spectra.