mailr14268 - /branches/gui_testing/auto_analyses/dauvergne_protocol.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 08, 2011 - 18:18:
Author: bugman
Date: Mon Aug  8 18:18:17 2011
New Revision: 14268

URL: http://svn.gna.org/viewcvs/relax?rev=14268&view=rev
Log:
All the data pipes are cleared out in the final stage of the 
dauvergne_protocol.

This is to remove many of the temporary data pipes from view of the user.


Modified:
    branches/gui_testing/auto_analyses/dauvergne_protocol.py

Modified: branches/gui_testing/auto_analyses/dauvergne_protocol.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/auto_analyses/dauvergne_protocol.py?rev=14268&r1=14267&r2=14268&view=diff
==============================================================================
--- branches/gui_testing/auto_analyses/dauvergne_protocol.py (original)
+++ branches/gui_testing/auto_analyses/dauvergne_protocol.py Mon Aug  8 
18:18:17 2011
@@ -30,7 +30,7 @@
 from float import floatAsByteArray
 from info import Info_box; info = Info_box()
 from generic_fns.mol_res_spin import exists_mol_res_spin_data, 
generate_spin_id, spin_index_loop, spin_loop
-from generic_fns.pipes import cdp_name, get_pipe, has_pipe, switch
+from generic_fns.pipes import cdp_name, get_pipe, has_pipe, pipe_names, 
switch
 from generic_fns import selection
 from prompt.interpreter import Interpreter
 from relax_errors import RelaxError, RelaxNoSequenceError, RelaxNoValueError
@@ -627,11 +627,14 @@
             # All the global diffusion models to be used in the model 
selection.
             self.pipes = ['local_tm', 'sphere', 'prolate', 'oblate', 
'ellipsoid']
 
-            # Close all pipes that might be craeted.
-            for name in self.pipes:
-                # Close the pipe
-                if has_pipe(name):
-                    self.interpreter.pipe.delete(name)
+            # Remove all pipes.
+            for name in pipe_names():
+                # Skip the original pipe.
+                if name = self.pipe_name:
+                    continue
+
+                # Delete the pipe.
+                self.interpreter.pipe.delete(name)
 
             # Missing optimised model.
             dir_list = listdir(self.results_dir)




Related Messages


Powered by MHonArc, Updated Mon Aug 08 18:20:02 2011