Author: bugman Date: Mon Mar 4 18:54:32 2013 New Revision: 18624 URL: http://svn.gna.org/viewcvs/relax?rev=18624&view=rev Log: Converted the tensor rotation in the frame order target functions to be a forwards rotation. This allows the RDC to match the PCS, in that the average domain position is moved by a forwards rotation and forwards translation. Modified: branches/frame_order_testing/maths_fns/frame_order/__init__.py Modified: branches/frame_order_testing/maths_fns/frame_order/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/maths_fns/frame_order/__init__.py?rev=18624&r1=18623&r2=18624&view=diff ============================================================================== --- branches/frame_order_testing/maths_fns/frame_order/__init__.py (original) +++ branches/frame_order_testing/maths_fns/frame_order/__init__.py Mon Mar 4 18:54:32 2013 @@ -1981,11 +1981,11 @@ # Rotate the tensor (normal R.X.RT rotation). if self.full_in_ref_frame[align_index]: - self.A_3D_bc[align_index] = dot(self.R_ave, dot(self.tensor_3D, transpose(self.R_ave))) + self.A_3D_bc[align_index] = dot(transpose(self.R_ave), dot(self.tensor_3D, self.R_ave)) # Rotate the tensor (inverse RT.X.R rotation). else: - self.A_3D_bc[align_index] = dot(transpose(self.R_ave), dot(self.tensor_3D, self.R_ave)) + self.A_3D_bc[align_index] = dot(self.R_ave, dot(self.tensor_3D, transpose(self.R_ave))) # Convert the tensor back to 5D, rank-1 form, as the back-calculated reduced tensor. to_5D(self.A_5D_bc[index1:index2], self.A_3D_bc[align_index])