EPResult class
- class eprun.eprun.EPResult[source]
A class representing the results of an EnergyPlus simulation.
Note
An EPResult instance is returned as the result of the
runsimfunction. It should not be instantiated directly.Code Example
>>> from eprun import eprun >>> epresult=eprun(ep_dir='C:\EnergyPlusV9-6-0', >>> input_filepath='1ZoneUncontrolled.idf', >>> epw_filepath='USA_CO_Golden-NREL.724666_TMY3.epw', >>> sim_dir='simulation_files') >>> print(type(epresult)) <class 'eprun.epresult.EPResult'> >>> print(epresult.returncode) 0
- property files
A dictionary of the results files from a successful EnergyPlus simulation. The keys of the dictionary are the file extensions e.g. ‘eso’, ‘err’ etc. The values of the dictionary are the absolute filepaths of the files.
- property returncode
The returncode of the
subprocess.runcall to the EnergyPlus exe file. This indicates if the call to EnergyPlus was successful. 0 means success. 1 means failure.- Return type
- property stdout
The stdout of the
subprocess.runcall to the EnergyPlus exe file. This is the text that would appear in the CommandPromt if the command was run there.- Return type