mailr5932 - /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 April 21, 2008 - 17:33:
Author: bugman
Date: Mon Apr 21 17:33:44 2008
New Revision: 5932

URL: http://svn.gna.org/viewcvs/relax?rev=5932&view=rev
Log:
Updated the map_bounds() function to the new design.


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=5932&r1=5931&r2=5932&view=diff
==============================================================================
--- 1.3/generic_fns/diffusion_tensor.py (original)
+++ 1.3/generic_fns/diffusion_tensor.py Mon Apr 21 17:33:44 2008
@@ -574,11 +574,14 @@
     test_params(num_params)
 
 
-def map_bounds(run, param):
-    """The function for creating bounds for the mapping function."""
-
-    # Initialise.
-    run = run
+def map_bounds(param):
+    """The function for creating bounds for the mapping function.
+
+    @param param:   The name of the parameter to return the bounds for.
+    @type param:    str
+    @return:        The bounds for the parameter.
+    @rtype:         list of len 2 of floats
+    """
 
     # tm.
     if param == 'tm':
@@ -593,31 +596,31 @@
         return [-3.0/2.0 * 1e7, 3.0 * 1e7]
 
     # Dr.
-    elif param == 'Dr':
+    if param == 'Dr':
         return [0, 1]
 
     # Dratio.
-    elif param == 'Dratio':
+    if param == 'Dratio':
         return [1.0/3.0, 3.0]
 
     # theta.
-    elif param == 'theta':
+    if param == 'theta':
         return [0, pi]
 
     # phi.
-    elif param == 'phi':
+    if param == 'phi':
         return [0, 2*pi]
 
     # alpha.
-    elif param == 'alpha':
+    if param == 'alpha':
         return [0, 2*pi]
 
     # beta.
-    elif param == 'beta':
+    if param == 'beta':
         return [0, pi]
 
     # gamma.
-    elif param == 'gamma':
+    if param == 'gamma':
         return [0, 2*pi]
 
 




Related Messages


Powered by MHonArc, Updated Mon Apr 21 17:40:28 2008