Author: bugman
Date: Mon Jan 19 14:04:03 2009
New Revision: 8525
URL: http://svn.gna.org/viewcvs/relax?rev=8525&view=rev
Log:
Modified the Base_struct_API.to_xml() method to only call ModelList.to_xml() if
structural data exists.
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=8525&r1=8524&r2=8525&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19
14:04:03 2009
@@ -441,7 +441,8 @@
str_element.setAttribute('id', self.id)
# No contents to store, so pack up the structural containers.
- self.structural_data.to_xml(doc, element)
+ if not self.structural_data.is_empty():
+ self.structural_data.to_xml(doc, element)
def write_pdb(self, file, struct_index=None):
_______________________________________________
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