C++QED  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Modules Pages
PythonRunner Class Reference

Runs a cpypyqed script repeatedly for all declared runmodes and succeeds if the scripts do. More...

+ Inheritance diagram for PythonRunner:
+ Collaboration diagram for PythonRunner:

Public Member Functions

def run
 The method to run the test. More...
 
- Public Member Functions inherited from Runner
def run
 The method to run the test. More...
 
- Public Member Functions inherited from OutputManager
def __init__
 Arguments are passed through to OptionsManager.
 
def runmodes
 Return runmodes. More...
 
def output
 The name of the output file for a given runmode. More...
 
def clean
 Delete the trajectory file and state file for a given runmode. More...
 
- Public Member Functions inherited from OptionsManager
def __init__
 
def get_option
 Get configuration file keys in a safe way. More...
 

Additional Inherited Members

- Public Attributes inherited from OutputManager
 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.
 

Detailed Description

Runs a cpypyqed script repeatedly for all declared runmodes and succeeds if the scripts do.

Configuration file keys this class understands.

Definition at line 306 of file testdriver.py.

Member Function Documentation

def run (   self,
  clean = True,
  extra_opts = None,
  args,
  kwargs 
)

The method to run the test.

Parameters
clean(optional) Boolean: Whether to remove old output before running the test.
extra_opts(optional) List: Additional command line options appended to the script call.
argspassed through to Runner.run()
kwargspassed through to Runner.run()

This method terminates the test driver with a return value equal to that of the script call if one of the scripts fail.

Definition at line 321 of file testdriver.py.


The documentation for this class was generated from the following file: