mailRe: r22460 - /trunk/specific_analyses/relax_disp/api.py


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

Header


Content

Posted by Edward d'Auvergne on March 12, 2014 - 12:33:
Hi,

Here you could collect the calc_rotating_frame_params() calls into one
call.  This is to avoid code duplication.  Simply call the function
before the "if param == 'theta'" test.

Regards,

Edward



On 12 March 2014 12:04,  <tlinnet@xxxxxxxxxxxxx> wrote:
Author: tlinnet
Date: Wed Mar 12 12:04:47 2014
New Revision: 22460

URL: http://svn.gna.org/viewcvs/relax?rev=22460&view=rev
Log:
Added handling of calculating w_eff in dispersion API.

Regarding sr #3124, (https://gna.org/support/index.php?3124) - Grace graphs 
production for R1rho analysis with R2_eff as function of Omega_eff.

Modified:
    trunk/specific_analyses/relax_disp/api.py

Modified: trunk/specific_analyses/relax_disp/api.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/specific_analyses/relax_disp/api.py?rev=22460&r1=22459&r2=22460&view=diff
==============================================================================
--- trunk/specific_analyses/relax_disp/api.py   (original)
+++ trunk/specific_analyses/relax_disp/api.py   Wed Mar 12 12:04:47 2014
@@ -1431,7 +1431,7 @@
         """

         # Define list of special parameters.
-        special_parameters = ['theta']
+        special_parameters = ['theta', 'w_eff']

         # Use api_common function for paramets not defined in 
special_parameters.
         if param not in special_parameters:
@@ -1448,6 +1448,11 @@
         if param == "theta":
             theta_spin_dic, Domega_spin_dic, w_eff_spin_dic, dic_key_list 
= calc_rotating_frame_params(spin=spin)
             value = theta_spin_dic
+
+        # Return for parameter theta
+        elif param == "w_eff":
+            theta_spin_dic, Domega_spin_dic, w_eff_spin_dic, dic_key_list 
= calc_rotating_frame_params(spin=spin)
+            value = w_eff_spin_dic

         # Return the data.
         return value, error


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits



Related Messages


Powered by MHonArc, Updated Wed Mar 12 13:40:33 2014