mailr4821 - /1.3/maths_fns/jw_mapping.py


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

Header


Content

Posted by sebastien . morin . 1 on January 17, 2008 - 15:57:
Author: semor
Date: Thu Jan 17 15:57:43 2008
New Revision: 4821

URL: http://svn.gna.org/viewcvs/relax?rev=4821&view=rev
Log:
Converted the maths_fns.jw_mapping module from Numeric to numpy.


Modified:
    1.3/maths_fns/jw_mapping.py

Modified: 1.3/maths_fns/jw_mapping.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/maths_fns/jw_mapping.py?rev=4821&r1=4820&r2=4821&view=diff
==============================================================================
--- 1.3/maths_fns/jw_mapping.py (original)
+++ 1.3/maths_fns/jw_mapping.py Thu Jan 17 15:57:43 2008
@@ -21,7 +21,7 @@
 
###############################################################################
 
 # Python module imports.
-from Numeric import Float64, zeros
+from numpy import float64, zeros
 from math import pi
 
 # relax module imports.
@@ -48,14 +48,14 @@
         self.data.dip_const_fixed = 0.0
         self.data.csa_const_fixed = [0.0]
         self.data.dip_const_func = 0.0
-        self.data.csa_const_func = zeros(1, Float64)
+        self.data.csa_const_func = zeros(1, float64)
 
         # Nuclear frequencies.
         frq = frq * 2 * pi
         frqX = frq * self.data.gx / self.data.gh
 
         # Calculate the five frequencies which cause R1, R2, and NOE 
relaxation.
-        self.data.frq_list = zeros((1, 5), Float64)
+        self.data.frq_list = zeros((1, 5), float64)
         self.data.frq_list[0, 1] = frqX
         self.data.frq_list[0, 2] = frq - frqX
         self.data.frq_list[0, 3] = frq




Related Messages


Powered by MHonArc, Updated Thu Jan 17 16:20:14 2008