EPErr class

class eprun.eprun.EPErr(fp)[source]

A class for an EnergyPlus .err file.

Parameters

fp (str) – The filepath for the .err file.

Code Example

>>> from eprun import EPErr
>>> err=EPErr(r'simulation_files\eplusout.err')
>>> print(type(err))
<class 'eprun.eperr.EPErr'>
>>> print(err.firstline)
Program Version,EnergyPlus, Version 9.4.0-998c4b761e, YMD=2020.12.31 08:53,
>>> print(err.lastline)
EnergyPlus Completed Successfully-- 0 Warning; 0 Severe Errors; Elapsed Time=00hr 00min  2.21sec
>>> print(err.warnings)
[]

See also

Output Details and Examples, page 125. https://energyplus.net/quickstart#reading

property firstline

The first line recorded in the .err file.

Return type

str

property lastline

The last line recorded in the .err file.

Return type

str

property lines

The lines recorded in the .err file.

Return type

str

property severes

The severe errors recorded in the .err file.

Return type

list (str)

property warnings

The warning errors recorded in the .err file.

Return type

list (str)