Package theia :: Package helpers :: Module tools
[hide private]
[frames] | no frames]

Module tools

source code

Defines some generic functions for theia.

Classes [hide private]
  TotalReflectionError
TotalReflectionError class.
  InputError
InputError class.
Functions [hide private]
 
timer(func)
Decorator function to log execution time of other functions.
source code
 
formatter(stringList)
Returns a formatted version of the text formed by the list of lines.
source code
 
shortRef(inStr)
Returns the short reference corresponding to string.
source code
Variables [hide private]
  __package__ = 'theia.helpers'
Function Details [hide private]

shortRef(inStr)

source code 

Returns the short reference corresponding to string.

Change all 't2nrt' in 'R', all 't(2n+1)rt' in 'T' and 'r' in 'R' in string. Used to write short references to beams.