Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/utils.py

    r3093 r2456  
    1616
    1717def _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):
    2119        if len(param) == 0: return True # empty list
    2220        out = True
     
    3331        else: return [param]
    3432    if _is_sequence_or_number(param, ptype):
    35         return list(param)
     33        return param
    3634    return None
    3735
Note: See TracChangeset for help on using the changeset viewer.