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

momentum w/o mass #314

Open
ax3l opened this issue Apr 7, 2021 · 0 comments · May be fixed by #315
Open

momentum w/o mass #314

ax3l opened this issue Apr 7, 2021 · 0 comments · May be fixed by #315
Labels

Comments

@ax3l
Copy link
Member

ax3l commented Apr 7, 2021

Just documenting this so we don't forget.

At the moment, we cannot read or visualize the momentum (u(x|y|z)) record of particle species that do not write mass as well.

openpmd_viewer/openpmd_timeseries/data_reader/io_reader/particle_reader.py in read_species_data(series, iteration, species_name, component_name, extensions)
     95         if np.all( m != 0 ):
     96             norm_factor = 1. / (m * constants.c)
---> 97             data *= norm_factor
     98 
     99 
ValueError: operands could not be broadcast together with shapes (265489,) (0,) (265489,) 

Related:

@ax3l ax3l added the bug label Apr 7, 2021
@ax3l ax3l linked a pull request Apr 7, 2021 that will close this issue
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 a pull request may close this issue.

1 participant