[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8f91963e76
commit
38bae672da
@ -418,7 +418,9 @@ def attach_conventional_generators(
|
|||||||
if f"conventional_{carrier}_{attr}" in conventional_inputs:
|
if f"conventional_{carrier}_{attr}" in conventional_inputs:
|
||||||
# Values affecting generators of technology k country-specific
|
# Values affecting generators of technology k country-specific
|
||||||
# First map generator buses to countries; then map countries to p_max_pu
|
# First map generator buses to countries; then map countries to p_max_pu
|
||||||
values = pd.read_csv(snakemake.input[f"conventional_{carrier}_{attr}"], index_col=0).iloc[:, 0]
|
values = pd.read_csv(
|
||||||
|
snakemake.input[f"conventional_{carrier}_{attr}"], index_col=0
|
||||||
|
).iloc[:, 0]
|
||||||
bus_values = n.buses.country.map(values)
|
bus_values = n.buses.country.map(values)
|
||||||
n.generators[attr].update(
|
n.generators[attr].update(
|
||||||
n.generators.loc[idx].bus.map(bus_values).dropna()
|
n.generators.loc[idx].bus.map(bus_values).dropna()
|
||||||
|
Loading…
Reference in New Issue
Block a user