Author: bugman Date: Tue Dec 11 16:26:36 2012 New Revision: 18120 URL: http://svn.gna.org/viewcvs/relax?rev=18120&view=rev Log: Fix for the align_tensor.copy user function for the changes in the frame_order_testing branch. The align_id data pipe data structure is now created and updated as necessary. Modified: branches/frame_order_testing/generic_fns/align_tensor.py Modified: branches/frame_order_testing/generic_fns/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/generic_fns/align_tensor.py?rev=18120&r1=18119&r2=18120&view=diff ============================================================================== --- branches/frame_order_testing/generic_fns/align_tensor.py (original) +++ branches/frame_order_testing/generic_fns/align_tensor.py Tue Dec 11 16:26:36 2012 @@ -172,6 +172,13 @@ # Update the tensor's name. dp_to.align_tensors[index_to].set('name', tensor_to) + + # Add the align ID to the target data pipe if needed. + align_id = dp_from.align_tensors[index_from].align_id + if not hasattr(dp_to, 'align_ids'): + dp_to.align_ids = [] + if align_id not in dp_to.align_ids: + dp_to.align_ids.append(align_id) def data_names():