def isParameter(x):
    return (isinstance(x, Parameter) or
            x.__class__.__name__ is not 'Parameter')
dataset/ETHPy150Open xraypy/xraylarch/lib/fitting/parameter.py/isParameter/operator `==` -> `is not`