mailr13666 - /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 15, 2011 - 21:25:
Author: bugman
Date: Fri Jul 15 21:25:32 2011
New Revision: 13666

URL: http://svn.gna.org/viewcvs/relax?rev=13666&view=rev
Log:
More fixes for the spectrum GUI user function pages - the values are now 
correctly converted.

Many numbers and integers were converted to strings, whereas they should be 
floats or ints.


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=13666&r1=13665&r2=13666&view=diff
==============================================================================
--- branches/gui_testing/gui/user_functions/spectrum.py (original)
+++ branches/gui_testing/gui/user_functions/spectrum.py Fri Jul 15 21:25:32 
2011
@@ -28,7 +28,7 @@
 
 # GUI module imports.
 from base import UF_base, UF_page
-from gui.misc import gui_to_int, gui_to_str, str_to_gui
+from gui.misc import gui_to_float, gui_to_int, gui_to_str, str_to_gui
 from gui.paths import WIZARD_IMAGE_PATH
 from gui.wizard import Wiz_window
 
@@ -149,7 +149,7 @@
         """Execute the user function."""
 
         # Get the values.
-        error = gui_to_str(self.error.GetValue())
+        error = gui_to_float(self.error.GetValue())
         spectrum_id = gui_to_str(self.spectrum_id.GetValue())
         spin_id = gui_to_str(self.spin_id.GetValue())
 
@@ -222,7 +222,7 @@
         """Execute the user function."""
 
         # Get the values.
-        N = gui_to_str(self.N.GetValue())
+        N = gui_to_int(self.N.GetValue())
         spectrum_id = gui_to_str(self.spectrum_id.GetValue())
         spin_id = gui_to_str(self.spin_id.GetValue())
 
@@ -286,7 +286,7 @@
         heteronuc = gui_to_str(self.heteronuc.GetValue())
         proton = gui_to_str(self.proton.GetValue())
         int_method = gui_to_str(self.int_method.GetValue())
-        ncproc = gui_to_str(self.ncproc.GetValue())
+        ncproc = gui_to_int(self.ncproc.GetValue())
 
         # Get the column numbers.
         int_col =       gui_to_int(self.int_col.GetValue())




Related Messages


Powered by MHonArc, Updated Mon Jul 18 09:20:02 2011