pyPenred’s API

pyPenred.readConfigFile(filename)[source]

Read a configuration file in both, YAML or penRed internal format, and returns the associated dictionary.

pyPenred.runFromFile(configFile='config.in', statusTime=20, configLog='config.log', simulationLog='simulation.log')[source]

Configures and runs a simulation from the specified file. Reports the simulation status periodically.

pyPenred.writeConfigFile(filename, d)[source]

Write a configuration file in penRed internal format, from the data stored in the dictionary.