Author: bugman Date: Wed Jul 23 17:33:02 2014 New Revision: 24683 URL: http://svn.gna.org/viewcvs/relax?rev=24683&view=rev Log: Fix for the lib.arg_check.is_num_or_num_tuple(). When the can_be_none flag is set to True, the tuple of None values is now considered valid. This enable the diffusion_tensor.init user function to accept the spheroid tensor values of (None, None, None, None), and the ellipsoid tensor values as a tuple of 6 None. Modified: branches/zooming_grid_search/lib/arg_check.py Modified: branches/zooming_grid_search/lib/arg_check.py URL: http://svn.gna.org/viewcvs/relax/branches/zooming_grid_search/lib/arg_check.py?rev=24683&r1=24682&r2=24683&view=diff ============================================================================== --- branches/zooming_grid_search/lib/arg_check.py (original) +++ branches/zooming_grid_search/lib/arg_check.py Wed Jul 23 17:33:02 2014 @@ -788,7 +788,7 @@ # Fail if not numbers. for i in range(len(arg)): - if not is_num(arg[i], raise_error=False): + if not (is_num(arg[i], raise_error=False) or (can_be_none and arg[i] == None)): fail = True # Fail.