mailr13741 - /branches/gui_testing/gui/user_functions/spectrum.py


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

Header


Content

Posted by edward on July 19, 2011 - 16:46:
Author: bugman
Date: Tue Jul 19 16:46:14 2011
New Revision: 13741

URL: http://svn.gna.org/viewcvs/relax?rev=13741&view=rev
Log:
Fix for the spectrum.replicated GUI user function - execution only occurs if 
more than one ID is given.


Modified:
    branches/gui_testing/gui/user_functions/spectrum.py

Modified: branches/gui_testing/gui/user_functions/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/spectrum.py?rev=13741&r1=13740&r2=13741&view=diff
==============================================================================
--- branches/gui_testing/gui/user_functions/spectrum.py (original)
+++ branches/gui_testing/gui/user_functions/spectrum.py Tue Jul 19 16:46:14 
2011
@@ -366,5 +366,6 @@
             if val[i] != None:
                 spectrum_ids.append(val[i])
 
-        # Execute.
-        self.gui.interpreter.spectrum.replicated(spectrum_ids=spectrum_ids)
+        # Execute (only if more than one ID is given).
+        if len(spectrum_ids) > 1:
+            
self.gui.interpreter.spectrum.replicated(spectrum_ids=spectrum_ids)




Related Messages


Powered by MHonArc, Updated Tue Jul 19 17:20:02 2011