-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
speed up calaculation of particle properties
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%)
- Loading branch information
Showing
1 changed file
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters