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.
_______________________________________________
relax (http://nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits