pyPENELOPE

log – Log results from a simulation

Inheritance diagram of penelopetools.api.result.penepma.log

class penelopetools.api.result.penepma.log.LogTail(path)

Bases: penelopetools.api.result._Result, penelopetools.api.result.penepma.log._LogItem

Reads the last line of the PENEPMA log file (penepma.csv). The class implements _LogItem to store the values of the log.

The following information is extracted from the log.

  • time: elapsed time
  • speed: number of showers simulated per unit of time
  • shower: number of showers simulated
  • primary_particle: the number of particles absorbed, backscattered or transmitted
  • fraction: fraction of absorbed, backscattered or transmitted primary particles
  • generation_probability: generation probability of secondary electrons and photons
Parameters:path – folder containing the simulation results
FILENAME = 'penepma.csv'
dump(writer)