def getCurvesListWithDifferentCurveName(originalCurveList, origCurve, newCurve):
    """
    Takes in list of curves, curve name to be replaced, and curve name to replace with.
    Returns a list with the orginal and new curve names switched in the given curve list
    """

    plentifulCurves_wDEPTH = originalCurveList.copy()
    try:
        plentifulCurves_wDEPTH.remove(origCurve)
        plentifulCurves_wDEPTH.append(newCurve)
    except:
        print(
            "did not find ",
            origCurve,
            " when attempting to replace it with ",
            newCurve,
            " in the getCurvesListWithDifferentCurveName function",
        )
    return plentifulCurves_wDEPTH