Author: bugman Date: Wed May 28 19:21:59 2014 New Revision: 23568 URL: http://svn.gna.org/viewcvs/relax?rev=23568&view=rev Log: Bug fix for the lib.arg_check.is_float_object() function. The dim argument can sometimes be an integer rather than a tuple, but this was not handled by the function. Now integer dim arguments are pre-converted to lists before performing all the checks. 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=23568&r1=23567&r2=23568&view=diff ============================================================================== --- trunk/lib/arg_check.py (original) +++ trunk/lib/arg_check.py Wed May 28 19:21:59 2014 @@ -245,6 +245,8 @@ # Init. fail = False + if isinstance(dim, int): + dim = [dim] # An argument of None is allowed. if can_be_none and arg == None: