Author: bugman Date: Wed May 30 09:27:50 2012 New Revision: 16527 URL: http://svn.gna.org/viewcvs/relax?rev=16527&view=rev Log: Fix for the arg_check.is_float_matrix() function for rank-1 arrays. The function failed on lists of Python values, for example a list of bools. An additional check has been added to make sure that the list elements are also lists. Modified: branches/uf_redesign/arg_check.py Modified: branches/uf_redesign/arg_check.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/arg_check.py?rev=16527&r1=16526&r2=16527&view=diff ============================================================================== --- branches/uf_redesign/arg_check.py (original) +++ branches/uf_redesign/arg_check.py Wed May 30 09:27:50 2012 @@ -214,6 +214,10 @@ if not isinstance(arg, list) and not isinstance(arg, ndarray): fail = True + # Fail if not a matrix. + elif not isinstance(arg[0], list) and not isinstance(arg[0], ndarray): + fail = True + # Fail if not the right dimension. elif dim != None and len(arg) != dim[0]: fail = True