pyPENELOPE

phirhoz – Phi-rho-z distributions

Inheritance diagram of penelopetools.api.result.penepma2011.phirhoz

class penelopetools.api.result.penepma2011.phirhoz.PhiRhoZ(filename, path, name, description=None)

Bases: penelopetools.api.result._ProbabilityResult

Probability result for a phi-rho-z distribution.

Special kind of result file consisting of two, three or five columns of data. The order of the columns goes as follows:

  • Independent variable, typically energy
  • First probability
  • Error on the probability
  • Second probability
  • Error on the second probability

The values of the columns are saved in list; one list for each column. After the data is read (using the method load) the lists can be access with the attributes:

  • first_column
  • probability_density
  • probability_density_error
  • probability_density2
  • probability_density_error2

The complete data can also be access with the attribute data. It is a dictionary where the keys are the label of the columns and the value is the list of values.

Parameters:
  • filename – name of the file containing the probability result
  • path – folder containing the simulation results
  • name – name of the result
  • description – description of the result
BREMSSTRALUNG_FLUORESCENCE_EMITTED = 'Bremsstralung fluorescence photons (emitted)'
BREMSSTRALUNG_FLUORESCENCE_EMITTED_ERROR = 'Bremsstralung fluorescence photons (emitted) uncertainty'
BREMSSTRALUNG_FLUORESCENCE_GENERATED = 'Bremsstralung fluorescence photons (generated)'
BREMSSTRALUNG_FLUORESCENCE_GENERATED_ERROR = 'Bremsstralung fluorescence photons (generated) uncertainty'
CHARACTERISTIC_FLUORESCENCE_EMITTED = 'Characteristic fluorescence photons (emitted)'
CHARACTERISTIC_FLUORESCENCE_EMITTED_ERROR = 'Characteristic fluorescence photons (emitted) uncertainty'
CHARACTERISTIC_FLUORESCENCE_GENERATED = 'Characteristic fluorescence photons (generated)'
CHARACTERISTIC_FLUORESCENCE_GENERATED_ERROR = 'Characteristic fluorescence photons (generated) uncertainty'
DEPTH_FLUORESCENCE = 'Depth fluorescence (cm)'
FIRST_COLUMN = 'Depth (cm)'
FLUORESCENCE_EMITTED = 'Fluorescence photons (emitted)'
FLUORESCENCE_EMITTED_ERROR = 'Fluorescence photons (emitted) uncertainty'
FLUORESCENCE_GENERATED = 'Fluorescence photons (generated)'
FLUORESCENCE_GENERATED_ERROR = 'Fluorescence photons (generated) uncertainty'
INTENSITY_EMITTED = 'Photons intensity (emitted)'
INTENSITY_EMITTED_ERROR = 'Photons intensity (emitted) uncertainty'
INTENSITY_GENERATED = 'Photons intensity (generated)'
INTENSITY_GENERATED_ERROR = 'Photons intensity (generated) uncertainty'
PRIMARY_EMITTED = 'Primary photons (emitted)'
PRIMARY_EMITTED_ERROR = 'Primary photons (emitted) uncertainty'
PRIMARY_GENERATED = 'Primary photons (generated)'
PRIMARY_GENERATED_ERROR = 'Primary photons (generated) uncertainty'
bremsstralung_fluorescence_emitted
bremsstralung_fluorescence_emitted_error
bremsstralung_fluorescence_generated
bremsstralung_fluorescence_generated_error
characteristic_fluorescence_emitted
characteristic_fluorescence_emitted_error
characteristic_fluorescence_generated
characteristic_fluorescence_generated_error
datakeys
depths

Values in the first column. The first column contains the independent variable.

depths_fluorescence
fluorescence_emitted
fluorescence_emitted_error
fluorescence_generated
fluorescence_generated_error
intensity_emitted
intensity_emitted_error
intensity_generated
intensity_generated_error
primary_emitted
primary_emitted_error
primary_generated
primary_generated_error
class penelopetools.api.result.penepma2011.phirhoz.PhiRhoZs(path)

Bases: dict, penelopetools.api.result._Results

MATCH_PATTERN = 'pe-prz-(\\d\\d\\d\\d\\d\\d)-(\\d\\d).dat'
save(path=None, suffix='')