mailRe: r24337 - /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 Edward d'Auvergne on June 27, 2014 - 18:21:
Hi Troels,

This commit is also no longer required because of
http://www.mail-archive.com/relax-commits@xxxxxxx/msg21976.html.  Feel
free to revert.

Regards,

Edward



On 27 June 2014 12:58,  <tlinnet@xxxxxxxxxxxxx> wrote:
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:


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
relax-commits@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits



Related Messages


Powered by MHonArc, Updated Mon Jun 30 10:00:18 2014