[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
9f4f76126b
commit
2433c00dcb
@ -345,7 +345,7 @@ solar_thermal:
|
|||||||
|
|
||||||
# only relevant for foresight = myopic or perfect
|
# only relevant for foresight = myopic or perfect
|
||||||
existing_capacities:
|
existing_capacities:
|
||||||
unit_commitment: True # if unit commitment (UC) for conventional power plants is used
|
unit_commitment: true # if unit commitment (UC) for conventional power plants is used
|
||||||
# UC is only applied to extendable plants if linearized UC is used
|
# UC is only applied to extendable plants if linearized UC is used
|
||||||
grouping_years_power: [1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2020, 2025, 2030]
|
grouping_years_power: [1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2020, 2025, 2030]
|
||||||
grouping_years_heat: [1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2019] # these should not extend 2020
|
grouping_years_heat: [1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2019] # these should not extend 2020
|
||||||
@ -625,7 +625,7 @@ solving:
|
|||||||
options:
|
options:
|
||||||
formulation: kirchhoff
|
formulation: kirchhoff
|
||||||
clip_p_max_pu: 1.e-2
|
clip_p_max_pu: 1.e-2
|
||||||
linearized_unit_commitment: True
|
linearized_unit_commitment: true
|
||||||
load_shedding: false
|
load_shedding: false
|
||||||
noisy_costs: true
|
noisy_costs: true
|
||||||
skip_iterations: true
|
skip_iterations: true
|
||||||
|
@ -599,13 +599,13 @@ def add_unit_committment(n):
|
|||||||
Add unit commitment.
|
Add unit commitment.
|
||||||
"""
|
"""
|
||||||
c = "Link" if ("sector_opts" in snakemake.wildcards.keys()) else "Generator"
|
c = "Link" if ("sector_opts" in snakemake.wildcards.keys()) else "Generator"
|
||||||
uc_data = pd.read_csv("/home/lisa/Documents/pypsa-eur/data/unit_committment.csv",
|
uc_data = pd.read_csv(
|
||||||
index_col=0)
|
"/home/lisa/Documents/pypsa-eur/data/unit_committment.csv", index_col=0
|
||||||
|
)
|
||||||
for attr in uc_data.index:
|
for attr in uc_data.index:
|
||||||
n.df(c)[attr] = n.df(c)["carrier"].map(uc_data.loc[attr])
|
n.df(c)[attr] = n.df(c)["carrier"].map(uc_data.loc[attr])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def solve_network(n, config, opts="", **kwargs):
|
def solve_network(n, config, opts="", **kwargs):
|
||||||
set_of_options = config["solving"]["solver"]["options"]
|
set_of_options = config["solving"]["solver"]["options"]
|
||||||
solver_options = (
|
solver_options = (
|
||||||
@ -653,7 +653,8 @@ def solve_network(n, config, opts="", **kwargs):
|
|||||||
|
|
||||||
return n
|
return n
|
||||||
|
|
||||||
#%%
|
|
||||||
|
# %%
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
if "snakemake" not in globals():
|
if "snakemake" not in globals():
|
||||||
from _helpers import mock_snakemake
|
from _helpers import mock_snakemake
|
||||||
|
Loading…
Reference in New Issue
Block a user