mailr26902 - /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 December 02, 2014 - 21:42:
Author: bugman
Date: Tue Dec  2 21:42:14 2014
New Revision: 26902

URL: http://svn.gna.org/viewcvs/relax?rev=26902&view=rev
Log:
Simple fix for bug #23017 (https://gna.org/bugs/?23017).

This is the multidimensional numpy arrays are not being stored as IEEE 754 
arrays in the XML state
and results files.  The problem was a relatively recent regression caused by 
a change to the
is_float_matrix() function of the lib.arg_check module.  It was simply that 
the default dims keyword
argument value was changed from None to (3, 3).  Therefore any call to the 
function without
supplying the dims argument would fail if the matrix was not of the (3, 3) 
shape.


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=26902&r1=26901&r2=26902&view=diff
==============================================================================
--- trunk/lib/arg_check.py      (original)
+++ trunk/lib/arg_check.py      Tue Dec  2 21:42:14 2014
@@ -150,7 +150,7 @@
     return True
 
 
-def is_float_matrix(arg, name=None, dim=(3, 3), can_be_none=False, 
none_elements=False, raise_error=True):
+def is_float_matrix(arg, name=None, dim=None, can_be_none=False, 
none_elements=False, raise_error=True):
     """Test if the argument is a matrix of floats.
 
     @param arg:                         The argument.




Related Messages


Powered by MHonArc, Updated Tue Dec 02 22:00:02 2014