mailr18553 - /branches/frame_order_testing/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 February 20, 2013 - 21:20:
Author: bugman
Date: Wed Feb 20 21:20:54 2013
New Revision: 18553

URL: http://svn.gna.org/viewcvs/relax?rev=18553&view=rev
Log:
Fixes for the align_tensor.matrix_angles user function for the frame order 
testing branch.

The user function now falls back to the tensor index if the name is not 
present.


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=18553&r1=18552&r2=18553&view=diff
==============================================================================
--- branches/frame_order_testing/generic_fns/align_tensor.py (original)
+++ branches/frame_order_testing/generic_fns/align_tensor.py Wed Feb 20 
21:20:54 2013
@@ -1157,12 +1157,18 @@
     # The table header.
     table.append([''])
     for i in range(tensor_num):
-        table[0].append(cdp.align_tensors[i].name)
+        if cdp.align_tensors[i].name == None:
+            table[0].append(repr(i))
+        else:
+            table[0].append(cdp.align_tensors[i].name)
 
     # First loop over the rows.
     for i in range(tensor_num):
         # Add the tensor name.
-        table.append([cdp.align_tensors[i].name])
+        if cdp.align_tensors[i].name == None:
+            table.append([repr(i)])
+        else:
+            table.append([cdp.align_tensors[i].name])
 
         # Second loop over the columns.
         for j in range(tensor_num):




Related Messages


Powered by MHonArc, Updated Thu Feb 21 11:40:02 2013