mailr20586 - /branches/relax_disp/lib/dispersion/ns_2site_star.py


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

Header


Content

Posted by edward on August 14, 2013 - 11:54:
Author: bugman
Date: Wed Aug 14 11:54:37 2013
New Revision: 20586

URL: http://svn.gna.org/viewcvs/relax?rev=20586&view=rev
Log:
A fix for older numpy versions, as the numpy.add() function argument 'out' is 
relatively new.


Modified:
    branches/relax_disp/lib/dispersion/ns_2site_star.py

Modified: branches/relax_disp/lib/dispersion/ns_2site_star.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/lib/dispersion/ns_2site_star.py?rev=20586&r1=20585&r2=20586&view=diff
==============================================================================
--- branches/relax_disp/lib/dispersion/ns_2site_star.py (original)
+++ branches/relax_disp/lib/dispersion/ns_2site_star.py Wed Aug 14 11:54:37 
2013
@@ -86,8 +86,8 @@
     RCS[1, 1] = complex(0.0, -dw)
 
     # The matrix R that contains all the contributions to the evolution, 
i.e. relaxation, exchange and chemical shift evolution.
-    add(Rr, Rex, out=R)
-    add(R, RCS, out=R)
+    R = add(Rr, Rex)
+    R = add(R, RCS)
 
     # This is the complex conjugate of the above.  It allows the chemical 
shift to run in the other direction, i.e. it is used to evolve the shift 
after a 180 deg pulse.  The factor of 2 is to minimise the number of 
multiplications for the prop_2 matrix calculation.
     cR2 = conj(R) * 2.0




Related Messages


Powered by MHonArc, Updated Wed Aug 14 16:00:02 2013