[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
fe51fd7022
commit
ff0093c8fe
@ -3690,20 +3690,22 @@ def lossy_bidirectional_links(n, carrier, efficiencies={}):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def adjust_transport_temporal_agg(n):
|
def adjust_transport_temporal_agg(n):
|
||||||
|
|
||||||
engine_types = {"fuel_cell":'land transport fuel cell',
|
engine_types = {
|
||||||
"electric": 'land transport EV',
|
"fuel_cell": "land transport fuel cell",
|
||||||
"ice": 'land transport oil'}
|
"electric": "land transport EV",
|
||||||
|
"ice": "land transport oil",
|
||||||
|
}
|
||||||
|
|
||||||
p_set = n.loads_t.p_set.loc[:, n.loads.carrier=="land transport demand"]
|
p_set = n.loads_t.p_set.loc[:, n.loads.carrier == "land transport demand"]
|
||||||
|
|
||||||
for engine, carrier in engine_types.items():
|
for engine, carrier in engine_types.items():
|
||||||
share = get(options[f"land_transport_{engine}_share"], investment_year)
|
share = get(options[f"land_transport_{engine}_share"], investment_year)
|
||||||
|
|
||||||
if share==0: continue
|
if share == 0:
|
||||||
links_i = n.links[n.links.carrier==carrier].index
|
continue
|
||||||
|
links_i = n.links[n.links.carrier == carrier].index
|
||||||
efficiency = n.links_t.efficiency.loc[:, links_i]
|
efficiency = n.links_t.efficiency.loc[:, links_i]
|
||||||
p_set.columns = efficiency.columns
|
p_set.columns = efficiency.columns
|
||||||
p_nom = share * p_set.div(efficiency).max()
|
p_nom = share * p_set.div(efficiency).max()
|
||||||
|
Loading…
Reference in New Issue
Block a user