mailr6405 - /1.3/generic_fns/xml_data_pipe.py


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

Header


Content

Posted by edward on June 22, 2008 - 16:18:
Author: bugman
Date: Sun Jun 22 16:16:32 2008
New Revision: 6405

URL: http://svn.gna.org/viewcvs/relax?rev=6405&view=rev
Log:
Made the diff_tensor XML element optional, as the object may not always exist.


Modified:
    1.3/generic_fns/xml_data_pipe.py

Modified: 1.3/generic_fns/xml_data_pipe.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/xml_data_pipe.py?rev=6405&r1=6404&r2=6405&view=diff
==============================================================================
--- 1.3/generic_fns/xml_data_pipe.py (original)
+++ 1.3/generic_fns/xml_data_pipe.py Sun Jun 22 16:16:32 2008
@@ -218,7 +218,8 @@
     create_hybrid_elem(xmldoc, pipe_elem)
 
     # Add the diffusion tensor data.
-    create_diff_elem(xmldoc, pipe_elem)
+    if hasattr(cdp, 'diff_tensor'):
+        create_diff_elem(xmldoc, pipe_elem)
 
     # Add the structural data, if it exists.
     if hasattr(cdp, 'structure'):
@@ -228,6 +229,6 @@
     xml.dom.ext.PrettyPrint(xmldoc, file)
 
     # Print out.
-    print dir(ds[ds.current_pipe].structure)
+    print ds[ds.current_pipe]
     print "\n\nXML:"
     xml.dom.ext.PrettyPrint(xmldoc)




Related Messages


Powered by MHonArc, Updated Sun Jun 22 16:20:11 2008