mailr6199 - /1.3/specific_fns/relax_fit.py


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

Header


Content

Posted by edward on May 21, 2008 - 22:37:
Author: bugman
Date: Wed May 21 22:20:04 2008
New Revision: 6199

URL: http://svn.gna.org/viewcvs/relax?rev=6199&view=rev
Log:
Replaced a Numeric python dependence with the numpy equivalent.


Modified:
    1.3/specific_fns/relax_fit.py

Modified: 1.3/specific_fns/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/relax_fit.py?rev=6199&r1=6198&r2=6199&view=diff
==============================================================================
--- 1.3/specific_fns/relax_fit.py (original)
+++ 1.3/specific_fns/relax_fit.py Wed May 21 22:20:04 2008
@@ -21,9 +21,9 @@
 
###############################################################################
 
 # Python module imports.
-from LinearAlgebra import inverse
 from math import sqrt
 from numpy import array, average, dot, float64, identity, zeros
+from numpy.linalg import inv
 from re import match, search
 import sys
 
@@ -735,7 +735,7 @@
             # Diagonal scaling.
             scaling_matrix = self.assemble_scaling_matrix(spin=spin, 
scaling=scaling)
             if len(scaling_matrix):
-                param_vector = dot(inverse(scaling_matrix), param_vector)
+                param_vector = dot(inv(scaling_matrix), param_vector)
 
             # Get the grid search minimisation options.
             if match('^[Gg]rid', min_algor):




Related Messages


Powered by MHonArc, Updated Wed May 21 23:00:25 2008