• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JeffersonLab / PyPWA / 527
92%
master: 52%

Build:
Build:
LAST BUILD BRANCH: development
DEFAULT BRANCH: master
Ran 24 May 2018 06:55PM UTC
Jobs 4
Files 119
Run time 1613min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
527

push

travis-ci

Markjonestx
Add Vector and Particle support

This adds vectors and particles to PyPWA. The vectors are reworked from
the vectors that were originally written by Stephanie Bramlett for the
ISOBAR.

The new vectors utilize Numpy arrays to accelerate calculation over
each event. Each vector is a structured Numpy array with each column
being a component of that vector: 3 Vectors having 'x', 'y' and 'z'
columns, with 4 vectors adding a 4th 'e' column. Each row in the vector
represents an event for that vector. Included specific features are:

- Add, subtract, multiply, dot, vectors together or by scalars
- Iterate over the events in a vector using 'for event in vector:'
- Request components of the vector directly using Vector['x'], ...
- Ability to return a complete copy of the Vector, instead of the
  reference
- Ability to get the array from the vector
- Calculate length, length squared, theta, phi, cos theta, and sin theta
- Access each component through a property, Vector.x, Vector.y, ...
- 4 vector can return a 3 vector of it's x, y, and z values

The new Particle class extends from the 4 vector class and adds
additional properties to track the Particles GEANT Id and the particles
name. Features that the Particle class have right now are:

- Get specific event by index using Particle[index]
- Get the number of events with len(Particle)
- Stores the charge, name, and ID of particle
- Get X, Y, Z, and E components with Particle['x'], Particle['y'], ...
- Clean(ish) representation of the particle with repr(Particle)
- Split Particles into chunks using Particle.split

Lastly the new ParticlePool tracks all particles that were loaded in
from a single file, allows the user to request specific particles from
the pool, and iterate over both particles in the pool and events.
Specific features are:

- Iteration over events using 'for event in ParticlePool:' or
  ParticlePool.iterate_over_events()
- Iteratation over particles using ParticlePool.iterate_over_particles
- Retu... (continued)

5171 of 5567 relevant lines covered (92.89%)

3.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 527.1 24 May 2018 06:55PM UTC 0
92.67
Travis Job 527.1
2 527.2 24 May 2018 06:55PM UTC 0
92.72
Travis Job 527.2
3 527.3 24 May 2018 06:57PM UTC 0
92.74
Travis Job 527.3
4 527.4 24 May 2018 06:55PM UTC 0
92.67
Travis Job 527.4
Source Files on build 527
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #527
  • b8b4c338 on github
  • Next Build on feature-PyBin (#528)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc