Manages output files for different run modes. More...
Inheritance diagram for OutputManager:
Collaboration diagram for OutputManager:Public Member Functions | |
| def | __init__ (self, args, kwargs) |
| Arguments are passed through to OptionsManager. | |
| def | runmodes (self, section=None) |
| Return runmodes. More... | |
| def | output (self, runmode, section=None, statefile=False) |
| The name of the output file for a given runmode. More... | |
| def | clean (self, runmode) |
| Delete the trajectory file and state file for a given runmode. More... | |
Public Member Functions inherited from OptionsManager | |
| def | __init__ (self, options, cp) |
| def | get_option (self, name, default=None, required=False, section=None) |
| Get configuration file keys in a safe way. More... | |
Public Attributes | |
| outputdir | |
| All output files end up here. More... | |
| expecteddir | |
| Where to look for pre-run simulations to compare test runs to. More... | |
Public Attributes inherited from OptionsManager | |
| options | |
| optparse.Values: command line options | |
| cp | |
| ConfigParser: configuration file keys. | |
| test | |
| The name of the current test. | |
Manages output files for different run modes.
Configuration file keys this class understands.
Definition at line 163 of file testdriver.py.
| def clean | ( | self, | |
| runmode | |||
| ) |
Delete the trajectory file and state file for a given runmode.
| runmode | String: The runmode for which output files should be deleted. |
Definition at line 228 of file testdriver.py.
| def output | ( | self, | |
| runmode, | |||
section = None, |
|||
statefile = False |
|||
| ) |
The name of the output file for a given runmode.
| runmode | String: The runmode for which the filename should be generated. |
| section | (optional) String: Output file name for which section, current test section if left empty. |
| statefile | (optional) Boolean: By default generate the file name for a trajectory file. If set to true generate the file name for a state file. |
Definition at line 211 of file testdriver.py.
| def runmodes | ( | self, | |
section = None |
|||
| ) |
Return runmodes.
| section | (optional) String: Where to look up the runmodes, take current test section if not specified. |
Definition at line 195 of file testdriver.py.
| expecteddir |
Where to look for pre-run simulations to compare test runs to.
Definition at line 192 of file testdriver.py.
| outputdir |
All output files end up here.
Definition at line 190 of file testdriver.py.