Package pipe_control :: Module molmol :: Class Molmol
[hide private]
[frames] | no frames]

Class Molmol

source code

The Molmol execution object.

Instance Methods [hide private]
 
__init__(self)
Set up the Molmol execution object.
source code
 
clear_history(self)
Clear the Molmol command history.
source code
 
exec_cmd(self, command=None, store_command=True)
Write to the Molmol pipe.
source code
 
open_gui(self)
Open a Molmol pipe.
source code
 
open_pdb(self)
Open the PDB file in Molmol.
source code
bool
running(self)
Test if Molmol is running.
source code
Method Details [hide private]

exec_cmd(self, command=None, store_command=True)

source code 

Write to the Molmol pipe.

This function is also used to execute a user supplied Molmol command.

Parameters:
  • command (str) - The Molmol command to send into the program.
  • store_command (bool) - A flag specifying if the command should be stored in the history variable.

running(self)

source code 

Test if Molmol is running.

Returns: bool
Whether the Molmol pipe is open or not.