mailr12170 - /branches/bieri_gui/gui_bieri/user_functions/mol_res_spin.py


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

Header


Content

Posted by edward on January 05, 2011 - 17:15:
Author: bugman
Date: Wed Jan  5 17:15:27 2011
New Revision: 12170

URL: http://svn.gna.org/viewcvs/relax?rev=12170&view=rev
Log:
Fix for the _get_spin_info() and _get_res_info() methods - they now return 
None, None if not found.


Modified:
    branches/bieri_gui/gui_bieri/user_functions/mol_res_spin.py

Modified: branches/bieri_gui/gui_bieri/user_functions/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/user_functions/mol_res_spin.py?rev=12170&r1=12169&r2=12170&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/user_functions/mol_res_spin.py (original)
+++ branches/bieri_gui/gui_bieri/user_functions/mol_res_spin.py Wed Jan  5 
17:15:27 2011
@@ -81,7 +81,7 @@
 
             # Nothing.
             if not res:
-                return
+                return None, None
 
             # Split.
             res_num, res_name = split(res)
@@ -153,7 +153,7 @@
 
             # Nothing.
             if spin == '':
-                return
+                return None, None
 
             # Split.
             spin_num, spin_name = split(spin)




Related Messages


Powered by MHonArc, Updated Wed Jan 05 17:20:02 2011