REB Functional Tests  1.0
Testing suite for the WREB, GREB, and VST readout boards
VSTTest.JythonInterface Class Reference

Some hacky workarounds to clean up the limited communication with the Jython interface. More...

Inheritance diagram for VSTTest.JythonInterface:

Public Member Functions

def do (self, code)
 Execute a command on the CCS Jython interpreter. More...
 
def get (self, code, dtype="float")
 Executes a piece of code and returns the value through getOutput(). More...
 

Detailed Description

Some hacky workarounds to clean up the limited communication with the Jython interface.

Member Function Documentation

def VSTTest.JythonInterface.do (   self,
  code 
)

Execute a command on the CCS Jython interpreter.

Parameters
codeCode as a literal to be executed.
def VSTTest.JythonInterface.get (   self,
  code,
  dtype = "float" 
)

Executes a piece of code and returns the value through getOutput().

Parameters
codeCode as a literal to be executed.
dtypeOptional data type, defaults to float.
Returns
Converted value received through printed output from getOutput(). getOutput() normally only returns the results of cout, so the result is automatically typecasted to type dtype. This should be used only with a single command at a time. Like I said, hacky work around, this should be fixed in the future.

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