... | ... | @@ -26,4 +26,10 @@ with logger.Reader(basename) as f: |
|
|
time=time + 1)
|
|
|
|
|
|
# here we close the logfile and cleanup everything
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
The main class here is `logger.Reader`, which manages the log and index files in the directory `basename`.
|
|
|
|
|
|
The `logger.ParticleSet` is an abstraction for a set of particles from a `Reader`. Like regular sets, we can add, subtract, and intersect `ParticleSets`.
|
|
|
|
|
|
The function `Reader.get_particle_data` extracts data for a set of particles at a given time. |
|
|
\ No newline at end of file |