mailr24337 - /branches/disp_spin_speed/dep_check.py


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

Header


Content

Posted by tlinnet on June 27, 2014 - 12:58:
Author: tlinnet
Date: Fri Jun 27 12:58:24 2014
New Revision: 24337

URL: http://svn.gna.org/viewcvs/relax?rev=24337&view=rev
Log:
Added a numpy "out" argument check to dep_check.py.

This is for checking the out argument of:
numpy.multiply
numpy.add
numpy.subtract

Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion 
models for Clustered analysis.

Modified:
    branches/disp_spin_speed/dep_check.py

Modified: branches/disp_spin_speed/dep_check.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/dep_check.py?rev=24337&r1=24336&r2=24337&view=diff
==============================================================================
--- branches/disp_spin_speed/dep_check.py       (original)
+++ branches/disp_spin_speed/dep_check.py       Fri Jun 27 12:58:24 2014
@@ -64,6 +64,16 @@
     einsum_module = True
 except ImportError:
     einsum_module = False
+
+# numpy "out" argument to numpy.multiply or numpy.add.
+try:
+    a = numpy.array([1])
+    numpy.multiply(1, 1, a)
+    numpy.add(1, 1, a)
+    numpy.subtract(1, 1, a)
+    numpy_out = True
+except ValueError:
+    numpy_out = False
 
 # Bmrblib python package check.
 try:




Related Messages


Powered by MHonArc, Updated Fri Jun 27 13:00:03 2014