Package iceprod :: Package core :: Module translator :: Class Translator
[hide private]
[frames] | no frames]

Class Translator

source code

Known Subclasses:

Instance Methods [hide private]
 
__init__(self, steering, outfile, opts) source code
 
SetURL(self, url) source code
 
fetch_dependencies(self, indent='') source code
 
load_library(self, library, tray, indent='')
Load library.
source code
 
LoadLibraries(self, tray, indent='')
Load libraries into memory
source code
 
ClearLibraries(self)
Remove libraries from dictionary
source code
 
format_string(self, pstring, pformat)
Format string using the arguments in pformat
source code
 
cast_string(self, fstring, arg) source code
 
GetSystemDefaults(self, steering)
Generate defaul system options
source code
 
parseval(self, pvalue)
Parse parameter value string to see if it is an external variable and replace it with its value if found.
source code
 
EvaluateParameter(self, val, stype) source code
 
ConfigureServices(self, tray, indent='') source code
 
ConfigureModules(self, tray, indent='') source code
 
ConfigurePre(self, tray, indent='') source code
 
ConfigurePost(self, tray, indent='') source code
 
ConnectBoxes(self, tray, indent='') source code
 
units(self, pvalue, punit)
Parse I3Units
source code
 
TypeValue(self, pvalue, ptype, punit=None)
Convert string to a typed value
source code
 
WriteHeader(self, steeringmod=None)
Basic Header
source code
 
WriteSteering(self)
Steering Module
source code
 
Translate(self, itray=-1, indent='')
Execute icetray
source code
Class Variables [hide private]
  loaded_libs = {}
Method Details [hide private]

load_library(self, library, tray, indent='')

source code 

Load library. If library depends on other libraries, recursively load them first (can't have closed loops)

Parameters:
  • library - library to be loaded

GetSystemDefaults(self, steering)

source code 

Generate defaul system options

Returns:
dictonary with default sysopts

units(self, pvalue, punit)

source code 

Parse I3Units

Parameters:
  • pvalue - parameter type (string)
  • punit - optional parameter I3Unit (string)

TypeValue(self, pvalue, ptype, punit=None)

source code 

Convert string to a typed value

Parameters:
  • pvalue - parameter value (string)
  • ptype - parameter type (string)
  • punit - optional parameter I3Unit (string)