mailr4269 - /1.3/generic_fns/diffusion_tensor.py


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

Header


Content

Posted by edward on January 03, 2008 - 15:41:
Author: bugman
Date: Thu Jan  3 15:20:29 2008
New Revision: 4269

URL: http://svn.gna.org/viewcvs/relax?rev=4269&view=rev
Log:
Bug fix for the generic_fns.diffusion_tensor.set() function.

The setting of alpha, beta, and gamma is now forbidden for the spheroidal 
diffusion tensor.  The
setting of theta and phi are also now forbidden for the ellipsoidal diffusion 
tensor.


Modified:
    1.3/generic_fns/diffusion_tensor.py

Modified: 1.3/generic_fns/diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/diffusion_tensor.py?rev=4269&r1=4268&r2=4269&view=diff
==============================================================================
--- 1.3/generic_fns/diffusion_tensor.py (original)
+++ 1.3/generic_fns/diffusion_tensor.py Thu Jan  3 15:20:29 2008
@@ -1080,6 +1080,10 @@
             elif orient_params[0] == 'phi':
                 cdp.diff_tensor.phi = 
orient_values[orient_params.index('phi')]
 
+            # Disallowed parameter.
+            else:
+                raise RelaxError, "For spheroidal diffusion, the orientation 
parameter " + `orient_params` + " cannot be set."
+
         # Two orientational parameters.
         elif len(orient_params) == 2:
             # The orientational parameter set {theta, phi}.
@@ -1255,6 +1259,10 @@
             # The single parameter gamma.
             elif orient_params[0] == 'gamma':
                 cdp.diff_tensor.gamma = 
orient_values[orient_params.index('gamma')]
+
+            # Disallowed parameter.
+            else:
+                raise RelaxError, "For spheroidal diffusion, the orientation 
parameter " + `orient_params` + " cannot be set."
 
         # Two orientational parameters.
         elif len(orient_params) == 2:




Related Messages


Powered by MHonArc, Updated Thu Jan 03 16:00:24 2008