mailr8541 - /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:52:
Author: bugman
Date: Mon Jan 19 15:52:16 2009
New Revision: 8541

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

If no MolContainers are present, then don't try to change the molecule name!


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=8541&r1=8540&r2=8541&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:52:16 2009
@@ -942,7 +942,7 @@
         """
 
         # If no molecule data exists, replace the empty first molecule with 
this molecule (just a renaming).
-        if self.is_empty():
+        if len(self) and self.is_empty():
             self[0].name = mol_name
 
         # Otherwise append an empty MolContainer.




Related Messages


Powered by MHonArc, Updated Mon Jan 19 19:20:02 2009