add_electricity: fix read_csv
This commit is contained in:
parent
17d7403f20
commit
3dbd8d1492
@ -337,7 +337,7 @@ def attach_conventional_generators(n, costs, ppl, conventional_carriers, extenda
|
|||||||
# Single value affecting all generators of technology k indiscriminantely of country
|
# Single value affecting all generators of technology k indiscriminantely of country
|
||||||
n.generators.loc[idx, "p_max_pu"] = factors
|
n.generators.loc[idx, "p_max_pu"] = factors
|
||||||
elif isinstance(factors, str):
|
elif isinstance(factors, str):
|
||||||
factors = pd.read_file(factors, index_col=0)
|
factors = pd.read_csv(factors, index_col=0)['factor']
|
||||||
# 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
|
||||||
bus_factors = n.buses.country.map(factors)
|
bus_factors = n.buses.country.map(factors)
|
||||||
|
Loading…
Reference in New Issue
Block a user