mailr14521 - in /1.3/gui/analyses: auto_model_free.py auto_noe.py auto_rx_base.py


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

Header


Content

Posted by edward on August 30, 2011 - 13:32:
Author: bugman
Date: Tue Aug 30 13:32:51 2011
New Revision: 14521

URL: http://svn.gna.org/viewcvs/relax?rev=14521&view=rev
Log:
The GUI auto-analyses now initialise with a synchronous call to pipe.create().

This uses the GUI interpreter object apply() method to prevent race 
conditions.  This is important
as the pipe creation needs to be completed prior to the setting up of the GUI 
elements. 


Modified:
    1.3/gui/analyses/auto_model_free.py
    1.3/gui/analyses/auto_noe.py
    1.3/gui/analyses/auto_rx_base.py

Modified: 1.3/gui/analyses/auto_model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/auto_model_free.py?rev=14521&r1=14520&r2=14521&view=diff
==============================================================================
--- 1.3/gui/analyses/auto_model_free.py (original)
+++ 1.3/gui/analyses/auto_model_free.py Tue Aug 30 13:32:51 2011
@@ -170,8 +170,7 @@
         if data_index == None:
             # First create the data pipe if not already in existence.
             if not has_pipe(pipe_name):
-                self.gui.interpreter.queue('pipe.create', pipe_name, 'mf')
-                self.gui.interpreter.flush()
+                self.gui.interpreter.apply('pipe.create', pipe_name, 'mf')
 
             # Generate a storage container in the relax data store, and 
alias it for easy access.
             data_index = ds.relax_gui.analyses.add('model-free')

Modified: 1.3/gui/analyses/auto_noe.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/auto_noe.py?rev=14521&r1=14520&r2=14521&view=diff
==============================================================================
--- 1.3/gui/analyses/auto_noe.py (original)
+++ 1.3/gui/analyses/auto_noe.py Tue Aug 30 13:32:51 2011
@@ -97,8 +97,7 @@
         if data_index == None:
             # First create the data pipe if not already in existence.
             if not has_pipe(pipe_name):
-                self.gui.interpreter.queue('pipe.create', pipe_name, 'noe')
-                self.gui.interpreter.flush()
+                self.gui.interpreter.apply('pipe.create', pipe_name, 'noe')
 
             # Generate a storage container in the relax data store, and 
alias it for easy access.
             data_index = ds.relax_gui.analyses.add('NOE')

Modified: 1.3/gui/analyses/auto_rx_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/analyses/auto_rx_base.py?rev=14521&r1=14520&r2=14521&view=diff
==============================================================================
--- 1.3/gui/analyses/auto_rx_base.py (original)
+++ 1.3/gui/analyses/auto_rx_base.py Tue Aug 30 13:32:51 2011
@@ -96,8 +96,7 @@
         if data_index == None:
             # First create the data pipe if not already in existence.
             if not has_pipe(pipe_name):
-                self.gui.interpreter.queue('pipe.create', pipe_name, 
'relax_fit')
-                self.gui.interpreter.flush()
+                self.gui.interpreter.apply('pipe.create', pipe_name, 
'relax_fit')
 
             # Generate a storage container in the relax data store, and 
alias it for easy access.
             data_index = ds.relax_gui.analyses.add(self.label)




Related Messages


Powered by MHonArc, Updated Tue Aug 30 15:40:02 2011