mailr24789 - /branches/r1rho_plotting/specific_analyses/relax_disp/data.py


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

Header


Content

Posted by tlinnet on July 29, 2014 - 10:24:
Author: tlinnet
Date: Tue Jul 29 10:24:51 2014
New Revision: 24789

URL: http://svn.gna.org/viewcvs/relax?rev=24789&view=rev
Log:
Prepared flag, to tell which data type to interpolate through.

sr #3124(https://gna.org/support/?3124): Grace graphs production for R1rho 
analysis with R2_eff as function of Omega_eff.
sr #3138(https://gna.org/support/?3138): Interpolating theta through 
spin-lock offset [Omega], rather than spin-lock field strength [w1].

Modified:
    branches/r1rho_plotting/specific_analyses/relax_disp/data.py

Modified: branches/r1rho_plotting/specific_analyses/relax_disp/data.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/r1rho_plotting/specific_analyses/relax_disp/data.py?rev=24789&r1=24788&r2=24789&view=diff
==============================================================================
--- branches/r1rho_plotting/specific_analyses/relax_disp/data.py        
(original)
+++ branches/r1rho_plotting/specific_analyses/relax_disp/data.py        Tue 
Jul 29 10:24:51 2014
@@ -1777,13 +1777,20 @@
 
     # For R1rho models, interpolate through spin-lock field strength, and 
plot R1rho R2 as function of effective field in rotating frame w_eff.
     if cdp.exp_type_list == [EXP_TYPE_R1RHO]:
-        file_name_ini = "r2_r1rho_as_func_of_w_eff"
+        file_name_ini = "r2_r1rho_as_func_of_w_eff_inter_w1"
         x_axis = "w_eff"
-        
plot_disp_curves_r1rho_r2_as_func_of_rot_param(file_name_ini=file_name_ini, 
dir=dir, x_axis=x_axis, num_points=num_points, extend=extend, force=force, 
proton_mmq_flag=proton_mmq_flag, colour_order=colour_order)
+        interpolate = "disp"
+        
plot_disp_curves_r1rho_r2_as_func_of_rot_param(file_name_ini=file_name_ini, 
dir=dir, x_axis=x_axis, interpolate=interpolate, num_points=num_points, 
extend=extend, force=force, proton_mmq_flag=proton_mmq_flag, 
colour_order=colour_order)
 
         file_name_ini = "r1rho_as_func_of_theta_inter_w1"
         x_axis = "theta"
-        
plot_disp_curves_r1rho_r2_as_func_of_rot_param(file_name_ini=file_name_ini, 
dir=dir, x_axis=x_axis, num_points=num_points, extend=extend, force=force, 
proton_mmq_flag=proton_mmq_flag, colour_order=colour_order)
+        interpolate = "disp"
+        
plot_disp_curves_r1rho_r2_as_func_of_rot_param(file_name_ini=file_name_ini, 
dir=dir, x_axis=x_axis, interpolate=interpolate, num_points=num_points, 
extend=extend, force=force, proton_mmq_flag=proton_mmq_flag, 
colour_order=colour_order)
+
+        file_name_ini = "r1rho_as_func_of_theta_inter_offset"
+        x_axis = "theta"
+        interpolate = "offset"
+        
plot_disp_curves_r1rho_r2_as_func_of_rot_param(file_name_ini=file_name_ini, 
dir=dir, x_axis=x_axis, interpolate=interpolate, num_points=num_points, 
extend=extend, force=force, proton_mmq_flag=proton_mmq_flag, 
colour_order=colour_order)
 
     # Write a python "grace to PNG/EPS/SVG..." conversion script.
     # Open the file for writing.
@@ -1923,7 +1930,7 @@
         add_result_file(type='grace', label='Grace', file=file_path)
 
 
-def plot_disp_curves_r1rho_r2_as_func_of_rot_param(file_name_ini=None, 
dir=None, x_axis=None, num_points=None, extend=None, force=None, 
proton_mmq_flag=None, colour_order=None):
+def plot_disp_curves_r1rho_r2_as_func_of_rot_param(file_name_ini=None, 
dir=None, x_axis=None, interpolate=None, num_points=None, extend=None, 
force=None, proton_mmq_flag=None, colour_order=None):
     """Custom 2D Grace plotting function for the dispersion curves, 
interpolating theta through spin-lock offset rather than spin-lock field 
strength.
 
     One file will be created per spin system.
@@ -1932,8 +1939,10 @@
     @type file_name_ini:        str
     @keyword dir:               The optional directory to place the file 
into.
     @type dir:                  str
-    @keyword x_axis:            String flag to tell which X axis to plot for.
+    @keyword x_axis:            String flag to tell which X axis to plot 
for.  Can be either "w_eff" or "theta".
     @type x_axis:               str
+    @keyword interploate:       String flag to tell which data type to 
interpolate for.  Can be either "disp" or "offset".
+    @type interpolate:          str
     @keyword num_points:        The number of points to generate the 
interpolated fitted curves with.
     @type num_points:           int
     @keyword extend:            How far to extend the interpolated fitted 
curves to (in Hz).




Related Messages


Powered by MHonArc, Updated Tue Jul 29 10:40:02 2014