mailr3890 - /1.3/generic_fns/selection.py


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

Header


Content

Posted by edward on November 24, 2007 - 20:59:
Author: bugman
Date: Sat Nov 24 20:59:06 2007
New Revision: 3890

URL: http://svn.gna.org/viewcvs/relax?rev=3890&view=rev
Log:
Bug fix for generic_fns.selection.exists_mol_res_spin_data().

If no spins are selected, the function returns False!


Modified:
    1.3/generic_fns/selection.py

Modified: 1.3/generic_fns/selection.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/selection.py?rev=3890&r1=3889&r2=3890&view=diff
==============================================================================
--- 1.3/generic_fns/selection.py (original)
+++ 1.3/generic_fns/selection.py Sat Nov 24 20:59:06 2007
@@ -370,6 +370,10 @@
     if spin_num > 1:
         return True
 
+    # No spins have been selected (hence no data for the selection).
+    elif spin_num == 0:
+        return False
+
     # Test the name and number of the single spin.
     if spin.num == None and spin.name == None:
         # The object names in an empty container.




Related Messages


Powered by MHonArc, Updated Sat Nov 24 21:20:22 2007