Changes in trunk/python/utils.py [3093:2456]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/utils.py
r3093 r2456 16 16 17 17 def _is_sequence_or_number(param, ptype=int): 18 import numpy 19 #if isinstance(param,tuple) or isinstance(param,list): 20 if type(param) in (tuple, list, numpy.ndarray): 18 if isinstance(param,tuple) or isinstance(param,list): 21 19 if len(param) == 0: return True # empty list 22 20 out = True … … 33 31 else: return [param] 34 32 if _is_sequence_or_number(param, ptype): 35 return list(param)33 return param 36 34 return None 37 35
Note:
See TracChangeset
for help on using the changeset viewer.