mailr15753 - /1.3/gui/user_functions/spin.py


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

Header


Content

Posted by edward on April 17, 2012 - 15:31:
Author: bugman
Date: Tue Apr 17 15:31:34 2012
New Revision: 15753

URL: http://svn.gna.org/viewcvs/relax?rev=15753&view=rev
Log:
Clean up of the Create_page.on_execute() method.

The gui_to_*() functions are now being used for the spin information.


Modified:
    1.3/gui/user_functions/spin.py

Modified: 1.3/gui/user_functions/spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/user_functions/spin.py?rev=15753&r1=15752&r2=15753&view=diff
==============================================================================
--- 1.3/gui/user_functions/spin.py (original)
+++ 1.3/gui/user_functions/spin.py Tue Apr 17 15:31:34 2012
@@ -357,18 +357,10 @@
     def on_execute(self):
         """Execute the user function."""
 
-        # Get the molecule info.
-        mol_name = str(self.mol.GetValue())
-        if mol_name == '':
-            mol_name = None
-
-        # The residue info.
+        # Get the spin info.
+        mol_name = gui_to_str(self.mol.GetValue())
         res_num, res_name = self._get_res_info()
-
-        # The spin number.
         spin_num = gui_to_int(self.spin_num.GetValue())
-
-        # The spin name.
         spin_name = gui_to_str(self.spin_name.GetValue())
 
         # Set the name.




Related Messages


Powered by MHonArc, Updated Tue Apr 17 15:40:01 2012