Tellurium Plugins
Python ctypes wrapper documentation
 All Functions Variables Groups Pages
Functions
Utility Functions

Functions to help and assist in the use of the Plugins framework. More...

Functions

def getTelluriumDataHandle
 Retrieve a handle to RoadRunners internal data object. More...
 
def getTelluriumDataColumnHeader
 Get column header in roadrunner data. More...
 
def writeTelluriumData
 Write TelluriumData to a file. More...
 
def readTelluriumData
 Read TelluriumData from a file. More...
 
def createTelluriumDataFromFile
 Create TelluriumData from a file. More...
 
def freeTelluriumData
 Free TelluriumData. More...
 
def getCopyright
 Get Tellurium Plugins copyright. More...
 
def getVersion
 Get Tellurium plugin API version. More...
 
def getNumpyData
 Convert tellurium data to Numpy data. More...
 
def getTelluriumDataColumnHeader
 Get column header in tellurium data. More...
 
def getTelluriumDataColumnHeaderByIndex
 Get column header item by index. More...
 
def setTelluriumDataColumnHeader
 Set column header in tellurium data. More...
 
def setTelluriumDataColumnHeaderByIndex
 Set column header by index in tellurium data. More...
 
def getTelluriumDataElement
 Get Tellurium data element at row,col. More...
 
def setTelluriumDataElement
 Set Tellurium data element at row,col. More...
 
def getTelluriumDataWeight
 Get Tellurium data element at row,col. More...
 
def setTelluriumDataWeight
 Set Tellurium data element at row,col. More...
 
def getTelluriumDataNumRows
 Get number of rows in a tellurium data object. More...
 
def getTelluriumDataNumCols
 Get number of columns in a tellurium data object. More...
 
def writeTelluriumData
 Write TelluriumData to a file. More...
 
def readTelluriumData
 Read TelluriumData from a file. More...
 
def createTelluriumData
 Create a TelluriumData object. More...
 
def createTelluriumDataFromFile
 Create TelluriumData from a file. More...
 
def hasWeights
 Check if tellurium data has weights allocated. More...
 
def allocateWeights
 Allocate weights for tellurium data object. More...
 
def freeTelluriumData
 Free TelluriumData. More...
 
def getLastError
 Get last (API) error. More...
 
def unLoadAPI
 Unload the plugins api shared library.
 
def getDataArray
 MATRIX WRAPPERS. More...
 

Detailed Description

Functions to help and assist in the use of the Plugins framework.

Function Documentation

def python.telplugins_c_api.allocateWeights (   dataHandle)

Allocate weights for tellurium data object.

Parameters
dataHandleHandle to a tellurium data object
Returns
Returns true or false indicating if allocating weights were successful or not
def python.telplugins_c_api.createTelluriumData (   rows,
  cols 
)

Create a TelluriumData object.

Parameters
rowsNumber of rows in the data to be created
colsNumber of columns in the data to be created
Returns
Returns a handle to Tellurium data if successful, None otherwise
Note
Use the freeTelluriumData to free memory allocated
def telplugins_telluriumdata_api.createTelluriumDataFromFile (   fName)

Create TelluriumData from a file.

Parameters
fNameName of input file, including path. If no path is given, the file is read in current working directory
Returns
Returns a handle to RoadRunner data if successful, None otherwise
Note
Use the freeTelluriumData to free memory allocated by the returned data
def python.telplugins_c_api.createTelluriumDataFromFile (   fName)

Create TelluriumData from a file.

Parameters
fNameName of input file, including path. If no path is given, the file is read in current working directory
Returns
Returns a handle to Tellurium data if successful, None otherwise
Note
Use the freeTelluriumData to free memory allocated by the returned data
def telplugins_telluriumdata_api.freeTelluriumData (   rrDataHandle)

Free TelluriumData.

Parameters
dataHandleHandle to a roadrunner data object
Returns
Returns True or false indicating result
def python.telplugins_c_api.freeTelluriumData (   telDataHandle)

Free TelluriumData.

Parameters
dataHandleHandle to a tellurium data object
Returns
Returns True or false indicating result
def python.telplugins_c_api.getCopyright ( )

Get Tellurium Plugins copyright.

Returns
Returns a string if successful, None otherwise
def python.telplugins_c_api.getDataArray (   matrixH)

MATRIX WRAPPERS.

Return unerlying data array for a Tellurium matrix

Returns
Returns a ctypes pointer to double object on success, None otherwise
def python.telplugins_c_api.getLastError ( )

Get last (API) error.

This returns the last error if any.

Returns
Returns a string with an error success, None otherwise
def python.telplugins_c_api.getNumpyData (   telDataHandle)

Convert tellurium data to Numpy data.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns a numpy data object
def telplugins_telluriumdata_api.getTelluriumDataColumnHeader (   rrDataHandle)

Get column header in roadrunner data.

Parameters
rrDataHandleA handle to a roadrunner data object
Returns
Returns a numpy data object
def python.telplugins_c_api.getTelluriumDataColumnHeader (   telDataHandle)

Get column header in tellurium data.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns a numpy data object
def python.telplugins_c_api.getTelluriumDataColumnHeaderByIndex (   telDataHandle,
  index 
)

Get column header item by index.

Parameters
telDataHandleA handle to a tellurium data object
indexIndex of requested column name
Returns
Returns the column name on success, or None on failure
def python.telplugins_c_api.getTelluriumDataElement (   telDataHandle,
  row,
  col 
)

Get Tellurium data element at row,col.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns the numeric value at row,col
def telplugins_telluriumdata_api.getTelluriumDataHandle (   rrInstance)

Retrieve a handle to RoadRunners internal data object.

Parameters
rrInstanceA RoadRunner instance, as returned from roadrunner.RoadRunner()
Returns
Returns a handle to roadrunners internal data object
def python.telplugins_c_api.getTelluriumDataNumCols (   telDataHandle)

Get number of columns in a tellurium data object.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns number of cols in the data object
def python.telplugins_c_api.getTelluriumDataNumRows (   telDataHandle)

Get number of rows in a tellurium data object.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns number of rows in the data object
def python.telplugins_c_api.getTelluriumDataWeight (   telDataHandle,
  row,
  col 
)

Get Tellurium data element at row,col.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns the numeric value at row,col
def python.telplugins_c_api.getVersion ( )

Get Tellurium plugin API version.

Returns
Returns a string if successful, None otherwise
def python.telplugins_c_api.hasWeights (   dataHandle)

Check if tellurium data has weights allocated.

Parameters
dataHandleHandle to a tellurium data object
Returns
Returns true or false indicating if the data object has weights or not
def telplugins_telluriumdata_api.readTelluriumData (   rrDataHandle,
  fName 
)

Read TelluriumData from a file.

Parameters
rrDataHandleA handle to roadunnerdata
fNameName of input file, including path. If no path is given, the file is read in current working directory
Returns
Returns True or false indicating result
def python.telplugins_c_api.readTelluriumData (   telDataHandle,
  fName 
)

Read TelluriumData from a file.

Parameters
telDataHandleA handle to roadunnerdata
fNameName of input file, including path. If no path is given, the file is read in current working directory
Returns
Returns True or false indicating result
def python.telplugins_c_api.setTelluriumDataColumnHeader (   telDataHandle,
  hdr 
)

Set column header in tellurium data.

Parameters
telDataHandleA handle to a tellurium data object
colHeaderA string containing the column header as comma separated values (spaces allowed too)
Returns
True or false indicating success
def python.telplugins_c_api.setTelluriumDataColumnHeaderByIndex (   telDataHandle,
  hdr,
  index 
)

Set column header by index in tellurium data.

Parameters
telDataHandleA handle to a tellurium data object
indexIndex for column name to change
colNameA string containing the column name
Returns
True or false indicating success
def python.telplugins_c_api.setTelluriumDataElement (   telDataHandle,
  row,
  col,
  number 
)

Set Tellurium data element at row,col.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns the numeric value at row,col
def python.telplugins_c_api.setTelluriumDataWeight (   telDataHandle,
  row,
  col,
  number 
)

Set Tellurium data element at row,col.

Parameters
telDataHandleA handle to a tellurium data object
Returns
Returns the numeric value at row,col
def telplugins_telluriumdata_api.writeTelluriumData (   rrDataHandle,
  fName 
)

Write TelluriumData to a file.

Parameters
rrDataHandleA handle to roadunnerdata
fNameName of output file, including path. If no path is given, the file is written to the current working directory
Returns
Returns True or false indicating result
def python.telplugins_c_api.writeTelluriumData (   telDataHandle,
  fName 
)

Write TelluriumData to a file.

Parameters
telDataHandleA handle to roadunnerdata
fNameName of output file, including path. If no path is given, the file is written to the current working directory
Returns
Returns True or false indicating result