Skip to content

Commit

Permalink
fix: do not require interconnect column in plant
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianHofmann authored and rouille committed Sep 10, 2022
1 parent bf4c5c1 commit f973c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powersimdata/input/converter/pypsa_to_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def _read_network(self, n, add_pypsa_cols=True):
# for type: type of cost model (1 piecewise linear, 2 polynomial), n: number of parameters for total cost function, c(0) to c(n-1): parameters
gencost = _translate_df(gencost_pypsa, "gencost")
gencost = gencost.assign(
type=2, n=3, c0=0, c2=0, interconnect=plant.interconnect
type=2, n=3, c0=0, c2=0, interconnect=plant.get("interconnect")
)

# branch
Expand Down

0 comments on commit f973c78

Please sign in to comment.