mailr7307 - /branches/rdc_analysis/data/pipe_container.py


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

Header


Content

Posted by edward on September 25, 2008 - 18:19:
Author: bugman
Date: Thu Sep 25 18:19:41 2008
New Revision: 7307

URL: http://svn.gna.org/viewcvs/relax?rev=7307&view=rev
Log:
Bug fix for the loading of results files when they contain not alignment 
tensor data.

The bug was in the PipeContainer.from_xml() method.


Modified:
    branches/rdc_analysis/data/pipe_container.py

Modified: branches/rdc_analysis/data/pipe_container.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/data/pipe_container.py?rev=7307&r1=7306&r2=7307&view=diff
==============================================================================
--- branches/rdc_analysis/data/pipe_container.py (original)
+++ branches/rdc_analysis/data/pipe_container.py Thu Sep 25 18:19:41 2008
@@ -125,8 +125,10 @@
 
         # Get the alignment tensor data nodes and, if they exist, fill the 
contents.
         align_tensor_super_node = 
relax_node.getElementsByTagName('align_tensors')
-        align_tensor_nodes = 
align_tensor_super_node[0].getElementsByTagName('align_tensor')
-        if align_tensor_nodes:
+        if align_tensor_super_node:
+            # Get the individual tensors.
+            align_tensor_nodes = 
align_tensor_super_node[0].getElementsByTagName('align_tensor')
+
             # Create the diffusion tensor object.
             self.align_tensors = AlignTensorList()
 




Related Messages


Powered by MHonArc, Updated Thu Sep 25 18:20:02 2008