Author: bugman Date: Thu Feb 7 11:08:02 2008 New Revision: 4916 URL: http://svn.gna.org/viewcvs/relax?rev=4916&view=rev Log: Converted the Molmol open_pdb() 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=4916&r1=4915&r2=4916&view=diff ============================================================================== --- 1.3/generic_fns/molmol.py (original) +++ 1.3/generic_fns/molmol.py Thu Feb 7 11:08:02 2008 @@ -110,12 +110,8 @@ pipe_write(command) -def open_pdb(run=None): +def open_pdb(): """Function for opening the PDB file in Molmol.""" - - # Argument. - if run: - run = run # Test if the pipe is open. if not pipe_open_test(): @@ -125,7 +121,7 @@ pipe_write("InitAll yes") # Open the PDB. - pipe_write("ReadPdb " + relax_data_store.pdb[run].file_name) + pipe_write("ReadPdb " + relax_data_store[relax_data_store.current_pipe].structure.file_name) def pipe_open():