mailr6495 - /1.3/data/mol_res_spin.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 25, 2008 - 02:20:
Author: bugman
Date: Wed Jun 25 02:20:20 2008
New Revision: 6495

URL: http://svn.gna.org/viewcvs/relax?rev=6495&view=rev
Log:
Fix for the SpinList and ResidueList xml_create_element() methods - all 
attributes must be strings.


Modified:
    1.3/data/mol_res_spin.py

Modified: 1.3/data/mol_res_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/mol_res_spin.py?rev=6495&r1=6494&r2=6495&view=diff
==============================================================================
--- 1.3/data/mol_res_spin.py (original)
+++ 1.3/data/mol_res_spin.py Wed Jun 25 02:20:20 2008
@@ -207,7 +207,7 @@
 
             # Set the spin attributes.
             spin_element.setAttribute('desc', 'Spin container')
-            spin_element.setAttribute('name', self[i].name)
+            spin_element.setAttribute('name', str(self[i].name))
             spin_element.setAttribute('num', str(self[i].num))
 
             # Get the spin specific object names and loop over them to get 
their descriptions.
@@ -422,7 +422,7 @@
 
             # Set the residue attributes.
             res_element.setAttribute('desc', 'Residue container')
-            res_element.setAttribute('name', self[i].name)
+            res_element.setAttribute('name', str(self[i].name))
             res_element.setAttribute('num', str(self[i].num))
 
             # Add all simple python objects within the ResidueContainer to 
the XML element.




Related Messages


Powered by MHonArc, Updated Wed Jun 25 02:40:17 2008