genBasic (version 1.4.1, 18 August 2004)
index
m:\projects\genesis-python\1.4.1\genbasic.py

Modules for joining Genesis 2000 scripting and the Python scripting language.
 
This module provides VERY basic interface for the Genesis 2000 Environment.
It defines basic functions to allow COM, PAUSE, etc to be executed.
 
Usage would be like this:
 
from genBasic import *
COM('open_job,job='+jobName)
PAUSE('Job is opened')

 
Functions
       
AUX(args)
Wrapper function for Genesis AUX LMC
args is string argument of AUX command
Returns a tuple of (gen.STATUS, gen.READANS, gen.COMANS)
COM(args)
Wrapper function for Genesis COM LMC
args is string argument of COM command
Returns a tuple of (gen.STATUS, gen.READANS, gen.COMANS)
DO_INFO(args)
Wrapper function for running COM info...
args is string of arguments to the info command
returns a dictionary with all the information in the 
output file from the info command.  Each array of information is accessed by a key to the
dictionary that is returned. LIMITATION: Any string resembling a number will be converted
to a number.  This means that a layer with the name '1.' or '1' will be returned later as
the float 1.0
INFO(args)
Wrapper function for running COM info...
args is string of arguments to the info command
Returns a list of strings which are lines from the output file
MOUSE(args, mode='p')
Wrapper function for Genesis MOUSE LMC
args is string argument of MOUSE command
mode is 'p' (default) or 'r'
Returns a tuple of (gen.STATUS, gen.READANS, gen.MOUSEANS)
PAUSE(msg)
Wrapper function for Genesis PAUSE LMC
args is string argument of PAUSE command
Returns a tuple of (gen.STATUS, gen.READANS, gen.PAUSEANS)
SU_OFF()
Wrapper function for Genesis SU_ON LMC
SU_ON()
Wrapper function for Genesis SU_ON LMC
VOF()
Wrapper function for Genesis VOF LMC
VON()
Wrapper function for Genesis VON LMC

 
Data
        __author__ = 'Mike J. Hopkins'
__credits__ = ' Mike J. Hopkins for the code, Travis Smith for the idea'
__date__ = '18 August 2004'
__version__ = '$Revision: 1.4.1 $'

 
Author
        Mike J. Hopkins

 
Credits
         Mike J. Hopkins for the code, Travis Smith for the idea