Author: bugman Date: Sun Jun 22 15:48:11 2008 New Revision: 6398 URL: http://svn.gna.org/viewcvs/relax?rev=6398&view=rev Log: Shifted all the variables of PipeContainer into the 'global' element. 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=6398&r1=6397&r2=6398&view=diff ============================================================================== --- 1.3/generic_fns/xml_data_pipe.py (original) +++ 1.3/generic_fns/xml_data_pipe.py Sun Jun 22 15:48:11 2008 @@ -158,8 +158,11 @@ # Create the data pipe element. pipe_elem = create_pipe_elem(xmldoc, top_elem) - # Add all simple python objects within the PipeContainer to the pipe element. - fill_object_contents(xmldoc, pipe_elem, object=ds[ds.current_pipe], blacklist=['diff_tensor', 'is_empty', 'mol', 'pipe_type', 'structure']) + # Add all simple python objects within the PipeContainer to the global element. + global_elem = xmldoc.createElement('global') + pipe_elem.appendChild(global_elem) + global_elem.setAttribute('desc', 'Global data located in the top level of the data pipe') + fill_object_contents(xmldoc, global_elem, object=ds[ds.current_pipe], blacklist=['diff_tensor', 'is_empty', 'mol', 'pipe_type', 'structure']) # Add the diffusion tensor data. create_diff_elem(xmldoc, pipe_elem) @@ -168,6 +171,6 @@ xml.dom.ext.PrettyPrint(xmldoc, file) # Print out. - print ds[ds.current_pipe].diff_tensor + print ds[ds.current_pipe].structure print "\n\nXML:" xml.dom.ext.PrettyPrint(xmldoc)