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

Scalarspeciesproperties #14

Merged
merged 3 commits into from
Dec 29, 2014
Merged

Scalarspeciesproperties #14

merged 3 commits into from
Dec 29, 2014

Conversation

skuschel
Copy link
Owner

fix #12

the default behavior of the reader classes is now to raise exceptions
whenever not dumped data is requested. This gives more control in the
program to intentionally handle that as an exception or allow to show
comprehensive error messages.
coherent implementation of atomic particle properties in
SingleSpeciesAnalyzer.
coherent mapping from ParticleAnalyzer functions to contained
SingleSpeciesAnalyzers.
calculations of particle properties may now be done already inside the
SingleSpeciesAnalyzer class. Calculations of particle properties which
require scalar values on a per species basis (usually mass and charge)
will speed up, because these constant values will not be repeated
using np.repeat before the calculation.
Timed on Laptop with 10e6 particles (timit package, 20 repetitions):
calculating gamma        0.43 --> 0.245 sec (57%)
calculating Ekin_MeV_qm  0.90 --> 0.36  sec (40%)
skuschel added a commit that referenced this pull request Dec 29, 2014
handle scalar species properties more efficiently and change reader policy.
Trying to access particle properties that arend dumped will now yield a KeyError.
@skuschel skuschel merged commit f5899ef into master Dec 29, 2014
@skuschel skuschel deleted the scalarspeciesproperties branch December 29, 2014 14:32
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.

unify data handling of particle properties
1 participant