mailr26339 - /trunk/lib/arg_check.py


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

Header


Content

Posted by edward on October 22, 2014 - 11:36:
Author: bugman
Date: Wed Oct 22 11:36:57 2014
New Revision: 26339

URL: http://svn.gna.org/viewcvs/relax?rev=26339&view=rev
Log:
Bug fix for the lib.arg_check.is_float_matrix() function.

The check for a numpy.ndarray data structure type was incorrect so that lists 
of numpy arrays were
failing in this function.  Rank-2 arrays were not affected.


Modified:
    trunk/lib/arg_check.py

Modified: trunk/lib/arg_check.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/arg_check.py?rev=26339&r1=26338&r2=26339&view=diff
==============================================================================
--- trunk/lib/arg_check.py      (original)
+++ trunk/lib/arg_check.py      Wed Oct 22 11:36:57 2014
@@ -196,7 +196,7 @@
     else:
         for i in range(len(arg)):
             # Fail if not a list.
-            if not isinstance(arg[i], list) and not isinstance(arg, ndarray):
+            if not (isinstance(arg[i], list) or isinstance(arg[i], ndarray)):
                 fail = True
 
             # Fail if not the right dimension.




Related Messages


Powered by MHonArc, Updated Wed Oct 22 11:40:02 2014