mailr8525 - /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 - 14:04:
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):




Related Messages


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