mailr12496 - /branches/bmrb/specific_fns/model_free/bmrb.py


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

Header


Content

Posted by edward on February 01, 2011 - 20:24:
Author: bugman
Date: Tue Feb  1 20:24:54 2011
New Revision: 12496

URL: http://svn.gna.org/viewcvs/relax?rev=12496&view=rev
Log:
The Rex value read from the BMRB file is now scaled to the correct value.


Modified:
    branches/bmrb/specific_fns/model_free/bmrb.py

Modified: branches/bmrb/specific_fns/model_free/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bmrb/specific_fns/model_free/bmrb.py?rev=12496&r1=12495&r2=12496&view=diff
==============================================================================
--- branches/bmrb/specific_fns/model_free/bmrb.py (original)
+++ branches/bmrb/specific_fns/model_free/bmrb.py Tue Feb  1 20:24:54 2011
@@ -160,6 +160,9 @@
             else:
                 ts_scale = te_scale
 
+            # Rex scaling.
+            rex_scale = 1.0 / (2.0*pi*cdp.frq[0]**2)
+
             # Loop over the spins.
             for i in range(N):
                 # Generate a spin ID.
@@ -189,6 +192,8 @@
                             value = value * tf_scale
                         elif mf_params[j] == 'ts':
                             value = value * ts_scale
+                        elif mf_params[j] == 'rex':
+                            value = value * rex_scale
 
                     # Set the parameter.
                     setattr(spin, mf_params[j], value)
@@ -205,6 +210,8 @@
                             error = error * tf_scale
                         elif mf_params[j] == 'ts':
                             error = error * ts_scale
+                        elif mf_params[j] == 'rex':
+                            error = error * rex_scale
 
                     # Set the error.
                     mf_param_err = mf_params[j] + '_err'




Related Messages


Powered by MHonArc, Updated Tue Feb 01 20:40:01 2011