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

Add method to calculate central energy and energy spread #304

Merged
merged 10 commits into from
Jan 26, 2021

Conversation

soerenjalas
Copy link
Member

Hi,
I've added a method to calculate the central energy and the energy spread of a particle distribution via mean and standard deviation or median and median absolute deviation.
This is in part redundant with get_mean_gamma which I left for backward compatibility.

Copy link
Member

@RemiLehe RemiLehe left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this PR!
I added a few comments for readability.

openpmd_viewer/addons/pic/lpa_diagnostics.py Outdated Show resolved Hide resolved
openpmd_viewer/addons/pic/lpa_diagnostics.py Show resolved Hide resolved
openpmd_viewer/addons/pic/lpa_diagnostics.py Show resolved Hide resolved
openpmd_viewer/addons/pic/lpa_diagnostics.py Show resolved Hide resolved
openpmd_viewer/addons/pic/lpa_diagnostics.py Outdated Show resolved Hide resolved
openpmd_viewer/addons/pic/lpa_diagnostics.py Outdated Show resolved Hide resolved
openpmd_viewer/addons/pic/lpa_diagnostics.py Show resolved Hide resolved
soerenjalas and others added 7 commits January 26, 2021 09:22
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
@RemiLehe
Copy link
Member

Thanks for updating the PR! ✨

@RemiLehe RemiLehe merged commit 2c8a81b into openPMD:dev Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants