Author: bugman Date: Mon Apr 7 18:40:38 2008 New Revision: 5389 URL: http://svn.gna.org/viewcvs/relax?rev=5389&view=rev Log: Updated the pipe_open() method to the new relax design. Modified: 1.3/generic_fns/pymol.py Modified: 1.3/generic_fns/pymol.py URL: http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pymol.py?rev=5389&r1=5388&r2=5389&view=diff ============================================================================== --- 1.3/generic_fns/pymol.py (original) +++ 1.3/generic_fns/pymol.py Mon Apr 7 18:40:38 2008 @@ -27,7 +27,7 @@ # relax module imports. from data import Data as relax_data_store from relax_errors import RelaxError, RelaxImplementError, RelaxNoPipeError, RelaxNoSequenceError -from relax_io import file_root +from relax_io import file_root, test_binary class Pymol: @@ -54,7 +54,7 @@ """Function for opening a PyMOL pipe.""" # Test that the PyMOL binary exists. - self.relax.IO.test_binary('pymol') + test_binary('pymol') # Open the PyMOL pipe. self.pymol = popen("pymol -qpK", 'w', 0) @@ -65,7 +65,7 @@ return # Test if the PDB file has been loaded. - if hasattr(relax_data_store, 'pdb') and relax_data_store.pdb.has_key(self.run): + if hasattr(relax_data_store, 'structure'): self.open_pdb()