Skip to content

Commit 2c10eb9

Browse files
committed
Fix daily hydropower modeling
1 parent d303aaf commit 2c10eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pownet/builder/hydro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def add_constraints(self, step_k: int, init_conds: dict, **kwargs) -> None:
109109
unit_type="hydro",
110110
timesteps=self.timesteps,
111111
step_k=step_k,
112-
units=self.inputs.hydro_units,
112+
units=self.inputs.hydro_unit_node.keys(),
113113
capacity_df=self.inputs.hydro_capacity,
114114
)
115115
# Daily upper bound
@@ -143,7 +143,7 @@ def update_constraints(self, step_k: int, init_conds: dict, **kwargs) -> None:
143143
unit_type="hydro",
144144
timesteps=self.timesteps,
145145
step_k=step_k,
146-
units=self.inputs.hydro_units,
146+
units=self.inputs.hydro_unit_node.keys(),
147147
capacity_df=self.inputs.hydro_capacity,
148148
)
149149

0 commit comments

Comments
 (0)