def SetParametersAndFit(inEquation, resultList): # utility function
    try:
        # check for number of coefficients > number of data points to be fitted
        if len(inEquation.GetCoefficientDesignators()) > len(inEquation.dataCache.allDataCacheDictionary['DependentData']):
            return

        # check for functions requiring non-zero nor non-negative data such as 1/x, etc.
        if inEquation.ShouldDataBeRejected(inEquation):
            return

        inEquation.Solve()
        
        target = inEquation.CalculateAllDataFittingTarget(inEquation.solvedCoefficients)
        if 1.0E290 > target: # error too large
            return
    except:
        print("Exception in " + inEquation.__class__.__name__ + '\n' + str(sys.exc_info()[0]) + '\n' + str(sys.exc_info()[1]) + '\n')
        return

    t0 = copy.copy(inEquation.__module__)
    t1 = copy.copy(inEquation.__class__.__name__)
    t2 = copy.copy(inEquation.extendedVersionHandler.__class__.__name__.split('_')[1])
    t3 = copy.copy(target)
    t4 = copy.copy(inEquation.solvedCoefficients)
    t5 = copy.copy(inEquation.polyfunctional3DFlags)
    t6 = copy.copy(inEquation.xPolynomialOrder)
    t7 = copy.copy(inEquation.yPolynomialOrder)

    resultList.append([t0,t1,t2,t3,t4,t5,t6,t7])
dataset/ETHPy150Open zunzun/pyeq2/Examples/Complex/Polyfunctional_3D.py/SetParametersAndFit/swapped operands of `>`