def isNumber(num):
    "input is a number"
    try:
        cnum = complex(num)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open xraypy/xraylarch/lib/utils/strutils.py/isNumber