mailr5742 - /1.3/specific_fns/jw_mapping.py


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

Header


Content

Posted by edward on April 15, 2008 - 23:12:
Author: bugman
Date: Tue Apr 15 23:12:20 2008
New Revision: 5742

URL: http://svn.gna.org/viewcvs/relax?rev=5742&view=rev
Log:
Fixed the setup of the maths_fns.jw_mapping.Mapping object.


Modified:
    1.3/specific_fns/jw_mapping.py

Modified: 1.3/specific_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/jw_mapping.py?rev=5742&r1=5741&r2=5742&view=diff
==============================================================================
--- 1.3/specific_fns/jw_mapping.py (original)
+++ 1.3/specific_fns/jw_mapping.py Tue Apr 15 23:12:20 2008
@@ -30,7 +30,7 @@
 from generic_fns.selection import exists_mol_res_spin_data, spin_loop
 from maths_fns.jw_mapping import Mapping
 from relax_errors import RelaxError, RelaxFuncSetupError, RelaxNoPipeError, 
RelaxNoSequenceError, RelaxNoValueError, RelaxNucleusError, RelaxParamSetError
-from physical_constants import N15_CSA, NH_BOND_LENGTH
+from physical_constants import N15_CSA, NH_BOND_LENGTH, h_bar, mu0, 
return_gyromagnetic_ratio
 
 
 class Jw_mapping(Common_functions):
@@ -119,7 +119,7 @@
                 continue
 
             # Initialise the function to calculate.
-            self.jw = Mapping(frq=cdp.jw_frq, gx=spin.gx, gh=spin.gh, 
mu0=spin.mu0, h_bar=spin.h_bar)
+            self.jw = Mapping(frq=cdp.jw_frq, 
gx=return_gyromagnetic_ratio(spin.heteronuc_type), 
gh=return_gyromagnetic_ratio(spin.proton_type), mu0=mu0, h_bar=h_bar)
 
             # Calculate the spectral density values.
             j0, jwx, jwh = self.jw.func(r=spin.r, csa=spin.csa, r1=r1, 
r2=r2, noe=noe)




Related Messages


Powered by MHonArc, Updated Tue Apr 15 23:20:21 2008