def manualParameters(iniParametersString):
    global numberOfParameters
    splitString = iniParametersString.split(',')
    iniParameters = []
    try:
        for i in splitString:
            temp1 = i.split('=')
            temp2 = float(temp1[1])
            iniParameters.append(temp2)
    except (ValueError, IndexError):
        return 3
    if (len(iniParameters) != numberOfParameters):
        return 3
    return fitFunction(iniParameters)
def manualParameters(iniParametersString):
    global numberOfParameters
    splitString = iniParametersString.split(',')
    iniParameters = []
    try:
        for i in splitString:
            temp1 = i.split('=')
            temp2 = float(temp1[1])
            iniParameters.append(temp2)
    except (ValueError, IndexError):
        return 3
    if (len(iniParameters) != numberOfParameters):
        return 3
    return fitFunction(iniParameters)