mailr8540 - /branches/multi_structure/generic_fns/structure/api_base.py


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

Header


Content

Posted by edward on January 19, 2009 - 15:51:
Author: bugman
Date: Mon Jan 19 15:51:07 2009
New Revision: 8540

URL: http://svn.gna.org/viewcvs/relax?rev=8540&view=rev
Log:
Fix for the MolList.is_empty() method.

Now if no MolContainers are in the list, the method returns True.


Modified:
    branches/multi_structure/generic_fns/structure/api_base.py

Modified: branches/multi_structure/generic_fns/structure/api_base.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/api_base.py?rev=8540&r1=8539&r2=8540&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19 
15:51:07 2009
@@ -964,6 +964,10 @@
         @rtype:     bool
         """
 
+        # No MolContainers.
+        if len(self) == 0:
+            return True
+
         # There is only one MolContainer and it is empty.
         if len(self) == 1 and hasattr(self[0], 'is_empty') and 
self[0].is_empty():
             return True




Related Messages


Powered by MHonArc, Updated Mon Jan 19 16:00:03 2009