mailr11306 - /1.3/generic_fns/align_tensor.py


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

Header


Content

Posted by edward on July 15, 2010 - 17:08:
Author: bugman
Date: Thu Jul 15 17:08:22 2010
New Revision: 11306

URL: http://svn.gna.org/viewcvs/relax?rev=11306&view=rev
Log:
Fix for the alignment tensor initialisation for when the ID is added to 
cdp.align_ids.

This was introduced in r11301.  cdp.align_ids was not being checked if the 
align ID already exists.


Modified:
    1.3/generic_fns/align_tensor.py

Modified: 1.3/generic_fns/align_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/align_tensor.py?rev=11306&r1=11305&r2=11306&view=diff
==============================================================================
--- 1.3/generic_fns/align_tensor.py (original)
+++ 1.3/generic_fns/align_tensor.py Thu Jul 15 17:08:22 2010
@@ -607,7 +607,8 @@
     # Add the tensor ID to the current data pipe.
     if not hasattr(cdp, 'align_ids'):
         cdp.align_ids = []
-    cdp.align_ids.append(tensor)
+    if tensor not in cdp.align_ids:
+        cdp.align_ids.append(tensor)
 
     # Add the align_tensors object to the data pipe.
     if not errors:




Related Messages


Powered by MHonArc, Updated Thu Jul 15 17:40:02 2010