pvcompare.check_inputs.add_local_grid_parameters¶
- pvcompare.check_inputs.add_local_grid_parameters(static_inputs_directory, user_inputs_mvs_directory)[source]¶
Adds grid parameters such as electricity price or feed-in tariff to ‘energyProviders.csv’.
This function adds the grid parameters (electricity price, feed-in tariff, CO2 emissions, renewable share, gas price) from ‘local_grid_parameters.xlsx’ to ‘energyProviders.csv’. The gas_price is only inserted if a column that starts with “Gas plant” exists in ‘energProviders.csv’.
If the value is already provided in the ‘energyProviders.csv’ and this value differs from the one in ‘electricity_prices.csv’ a warning is returned. If no value is available for the specific country, a default value is inserted instead and a warning is returned.
- Parameters
user_inputs_mvs_directory (str or None) – Path to MVS specific input directory. If None, constants.DEFAULT_USER_INPUTS_MVS_DIRECTORY is used. Default: None.
static_inputs_directory (str or None) – Path to pvcompare static inputs. If None, constants.DEFAULT_STATIC_INPUTS_DIRECTORY is used. Default: None.
- Returns
- Return type