Author: bugman Date: Thu Feb 7 11:27:46 2008 New Revision: 4921 URL: http://svn.gna.org/viewcvs/relax?rev=4921&view=rev Log: Converted the Molmol pipe_write() function to the new relax design. Modified: 1.3/generic_fns/molmol.py Modified: 1.3/generic_fns/molmol.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/molmol.py?rev=4921&r1=4920&r2=4921&view=diff ============================================================================== --- 1.3/generic_fns/molmol.py (original) +++ 1.3/generic_fns/molmol.py Thu Feb 7 11:27:46 2008 @@ -175,10 +175,17 @@ return True -def pipe_write(command=None, store_command=1): +def pipe_write(command=None, store_command=True): """Function for writing to the Molmol pipe. This function is also used to execute a user supplied Molmol command. + + + @param command: The Molmol command to send into Molmol. + @type command: str + @param store_command: A flag specifying if the command should be stored in the history + variable. + @type store_command: bool """ # Reopen the pipe if needed. @@ -186,7 +193,7 @@ pipe_open() # Write the command to the pipe. - relax_data_store.molmol.write(command + '\n') + relax_data_store[relax_data_store.current_pipe].molmol.write(command + '\n') # Place the command in the command history. if store_command: