mailr5500 - /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 April 09, 2008 - 14:16:
Author: bugman
Date: Wed Apr  9 14:16:42 2008
New Revision: 5500

URL: http://svn.gna.org/viewcvs/relax?rev=5500&view=rev
Log:
Bug fix for the exists_mol_res_spin_data() function.

The new cdp.mol.is_empty() method is being used to determine if data exists.


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=5500&r1=5499&r2=5500&view=diff
==============================================================================
--- 1.3/generic_fns/selection.py (original)
+++ 1.3/generic_fns/selection.py Wed Apr  9 14:16:42 2008
@@ -387,16 +387,12 @@
     # Alias the data pipe container.
     cdp = relax_data_store[relax_data_store.current_pipe]
 
-    # More than 1 molecule (hence data exists).
-    if len(cdp.mol) > 1:
-        return True
-
-    # The single molecule contains data.
-    if exists_mol_data(cdp.mol[0]):
-        return True
-
-    # No data!
-    return False
+    # The molecule, residue, spin object stack is empty.
+    if cdp.mol.is_empty():
+        return False
+
+    # Otherwise.
+    return True
 
 
 def exists_mol_data(mol_container):




Related Messages


Powered by MHonArc, Updated Wed Apr 09 15:00:20 2008