Author: bugman Date: Mon Apr 7 18:38:32 2008 New Revision: 5388 URL: http://svn.gna.org/viewcvs/relax?rev=5388&view=rev Log: Updated the view() function 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=5388&r1=5387&r2=5388&view=diff ============================================================================== --- 1.3/generic_fns/pymol.py (original) +++ 1.3/generic_fns/pymol.py Mon Apr 7 18:38:32 2008 @@ -106,7 +106,7 @@ # Initialise the Pymol data container. -pymol_data = Pymol() +pymol = Pymol() """Pymol data container instance.""" @@ -304,17 +304,14 @@ self.pipe_write("cmd.show('surface', " + `id` + ")") -def view(run=None): +def view(): """Function for running PyMOL.""" - # Arguments. - self.run = run - # Open a PyMOL pipe. - if self.pipe_open_test(): + if pymol.pipe_open_test(): raise RelaxError, "The PyMOL pipe already exists." else: - self.pipe_open() + pymol.pipe_open() def write(run=None, data_type=None, style="classic", colour_start=None, colour_end=None, colour_list=None, file=None, dir=None, force=0):