def __calcPoints(cpTrajData: pd.DataFrame, plotLines: pd.DataFrame, fuels: list) -> dict:
    points = {}
    (fuelRef, fuelGreen, fuelBlue) = fuels
    dropCols = ['plotIndex', 'fuel_x', 'fuel_y', 'cost_x', 'cost_y', 'ghgi_x', 'ghgi_y']
    greenLine = plotLines.query(f"fuel_x=='{fuelRef}' & fuel_y=='{fuelGreen}'").drop(columns=dropCols).reset_index(drop=True)
    blueLine = plotLines.query(f"fuel_x=='{fuelRef}' & fuel_y=='{fuelBlue}'").drop(columns=dropCols).reset_index(drop=True)
    redLine = plotLines.query(f"fuel_x=='{fuelBlue}' & fuel_y=='{fuelGreen}'").drop(columns=dropCols).reset_index(drop=True)
    purpleLine = cpTrajData.drop(columns=['name', 'CP_u', 'CP_l'])
    for (i, line) in enumerate([blueLine, greenLine, redLine]):
        diffLines = pd.merge(line, purpleLine, on=['year'])
        diffLines['delta'] = (diffLines['fscp'] - diffLines['CP']).abs()
        points[(i + 2)] = diffLines.nsmallest(1, 'delta').drop(columns=['CP', 'delta']).iloc[0]
    diffLines = pd.merge(blueLine, greenLine, on=['year'], suffixes=('', '_right'))
    diffLines['delta'] = (diffLines['fscp'] - diffLines['fscp_right']).abs()
    points[5] = diffLines.nsmallest(1, 'delta').drop(columns=['fscp_right', 'delta']).iloc[0]
    points[6] = redLine.abs().nsmallest(1, 'fscp').iloc[0]
    return points
def __calcPoints(cpTrajData: pd.DataFrame, plotLines: pd.DataFrame, fuels: list) -> dict:
    points = {}
    (fuelRef, fuelGreen, fuelBlue) = fuels
    dropCols = ['plotIndex', 'fuel_x', 'fuel_y', 'cost_x', 'cost_y', 'ghgi_x', 'ghgi_y']
    greenLine = plotLines.query(f"fuel_x=='{fuelRef}' & fuel_y=='{fuelGreen}'").drop(columns=dropCols).reset_index(drop=True)
    blueLine = plotLines.query(f"fuel_x=='{fuelRef}' & fuel_y=='{fuelBlue}'").drop(columns=dropCols).reset_index(drop=True)
    redLine = plotLines.query(f"fuel_x=='{fuelBlue}' & fuel_y=='{fuelGreen}'").drop(columns=dropCols).reset_index(drop=True)
    purpleLine = cpTrajData.drop(columns=['name', 'CP_u', 'CP_l'])
    for (i, line) in enumerate([blueLine, greenLine, redLine]):
        diffLines = pd.merge(line, purpleLine, on=['year'])
        diffLines['delta'] = (diffLines['fscp'] - diffLines['CP']).abs()
        points[(i + 2)] = diffLines.nsmallest(1, 'delta').drop(columns=['CP', 'delta']).iloc[0]
    diffLines = pd.merge(blueLine, greenLine, on=['year'], suffixes=(, '_right'))
    diffLines['delta'] = (diffLines['fscp'] - diffLines['fscp_right']).abs()
    points[5] = diffLines.nsmallest(1, 'delta').drop(columns=['fscp_right', 'delta']).iloc[0]
    points[6] = redLine.abs().nsmallest(1, 'fscp').iloc[0]
    return points