Author: bugman Date: Fri Sep 4 11:21:28 2009 New Revision: 9465 URL: http://svn.gna.org/viewcvs/relax?rev=9465&view=rev Log: Fix for the new daeg_to_rotational_superoperator() function. The frame order matrix shape is now restored. Modified: 1.3/maths_fns/frame_order_matrix_ops.py Modified: 1.3/maths_fns/frame_order_matrix_ops.py URL: http://svn.gna.org/viewcvs/relax/1.3/maths_fns/frame_order_matrix_ops.py?rev=9465&r1=9464&r2=9465&view=diff ============================================================================== --- 1.3/maths_fns/frame_order_matrix_ops.py (original) +++ 1.3/maths_fns/frame_order_matrix_ops.py Fri Sep 4 11:21:28 2009 @@ -88,6 +88,7 @@ """ # Convert to rank-4. + orig_shape = daeg.shape daeg.shape = (3, 3, 3, 3) # First column of the superoperator. @@ -125,6 +126,8 @@ Rsuper[3, 4] = daeg[1, 0, 2, 2] + daeg[2, 0, 1, 2] Rsuper[4, 4] = daeg[1, 1, 2, 2] + daeg[2, 1, 1, 2] + # Revert the shape. + daeg.shape = orig_shape def generate_vector(vector, theta, phi):