C++QED  v2 Milestone 10
a framework for simulating open quantum dynamics
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 (self, clean=True, extra_opts=None, args, kwargs)
 The method to run the test. More...
 
- Public Member Functions inherited from Runner
def run (self, clean=True, extra_opts=None, interpreter=None, args, kwargs)
 The method to run the test. More...
 
- Public Member Functions inherited from OutputManager
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...
 

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: