mailr13575 - in /branches/gui_testing/gui/analyses: 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 July 13, 2011 - 10:48:
Author: bugman
Date: Wed Jul 13 10:48:23 2011
New Revision: 13575

URL: http://svn.gna.org/viewcvs/relax?rev=13575&view=rev
Log:
The data pipes in the auto NOE, R1 and R2 analysis pages are now only created 
if they don't exist.


Modified:
    branches/gui_testing/gui/analyses/auto_noe.py
    branches/gui_testing/gui/analyses/auto_rx_base.py

Modified: branches/gui_testing/gui/analyses/auto_noe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_noe.py?rev=13575&r1=13574&r2=13575&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/auto_noe.py (original)
+++ branches/gui_testing/gui/analyses/auto_noe.py Wed Jul 13 10:48:23 2011
@@ -80,13 +80,13 @@
         # Store the main class.
         self.gui = gui
 
-        # First create the data pipe (if this fails, then no data is set up).
-        status = 
protected_exec(self.gui.user_functions.interpreter.pipe.create, pipe_name, 
'noe')
-        if not status:
-            return
-
         # New data container.
         if data_index == None:
+            # First create the data pipe (if this fails, then no data is set 
up).
+            status = 
protected_exec(self.gui.user_functions.interpreter.pipe.create, pipe_name, 
'noe')
+            if not status:
+                return
+
             # Generate a storage container in the relax data store, and 
alias it for easy access.
             data_index = ds.relax_gui.analyses.add('NOE')
 

Modified: branches/gui_testing/gui/analyses/auto_rx_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_rx_base.py?rev=13575&r1=13574&r2=13575&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/auto_rx_base.py (original)
+++ branches/gui_testing/gui/analyses/auto_rx_base.py Wed Jul 13 10:48:23 2011
@@ -78,13 +78,13 @@
         # Store the main class.
         self.gui = gui
 
-        # First create the data pipe (if this fails, then no data is set up).
-        status = 
protected_exec(self.gui.user_functions.interpreter.pipe.create, pipe_name, 
'relax_fit')
-        if not status:
-            return
-
         # New data container.
         if data_index == None:
+            # First create the data pipe (if this fails, then no data is set 
up).
+            status = 
protected_exec(self.gui.user_functions.interpreter.pipe.create, pipe_name, 
'relax_fit')
+            if not status:
+                return
+
             # 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 Wed Jul 13 11:20:02 2011