azcam_observe.observe_common module
Observe class.
Notes: IPython config needs: c.InteractiveShellApp.gui = 'qt' c.InteractiveShellApp.pylab = 'qt'
Classes
class ObserveCommon
The ObserveCommon class which implements observing scripts.
Methods
def execute_command(
self, linenumber)
Execute one command.
Args: linenumber: Line number to execute, from command buffer.
def help(
self)
Print help on scripting commands.
def log(
self, message)
Log a message.
Args: message: string to be logged.
def parse(
self)
Parse current line set into self.commands dictionary. The script file must have already been read using read_file().
def read_file(
self, script_file)
Read an observing script file into the .lines list.
Args: script_file: full path name of script file.
def run(
self)
Execute the commands in the script command dictionary.