mailr8516 - /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 - 11:51:
Author: bugman
Date: Mon Jan 19 11:51:50 2009
New Revision: 8516

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

If the molecule container method is_empty() is missing, then the container is 
assumed to not be
empty (i.e. the case for the Scientific python objects).


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=8516&r1=8515&r2=8516&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19 
11:51:50 2009
@@ -971,7 +971,7 @@
         """
 
         # There is only one MolContainer and it is empty.
-        if len(self) == 1 and self[0].is_empty():
+        if len(self) == 1 and hasattr(self[0], 'is_empty') and 
self[0].is_empty():
             return True
 
         # Otherwise.




Related Messages


Powered by MHonArc, Updated Mon Jan 19 12:00:04 2009