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