def change_weather(delphin_dict: dict, original_weather: str, new_weather: str) -> dict:
    """
    Changes the weather file of a weather instance. Can therefore only be used on climate conditions that is loaded
    from a file.

    :param delphin_dict: Delphin dict to change.
    :param original_weather: Name of the original weather
    :param new_weather: New weather file path
    :return: Modified Delphin dict
    """

    # Find original weather
    climate_conditions = delphin_dict['DelphinProject']['Conditions']['ClimateConditions']['ClimateCondition']
    for weather_index in range(0, len(climate_conditions)):
        if climate_conditions[weather_index]['@name'] == original_weather:
            climate_conditions[weather_index]['Filename'] = new_weather

    return delphin_dict