Skip to content

Commit 87057e9

Browse files
authored
Merge pull request #736 from johnjasa/700_fixes
Typo fixes based on PR feedback
2 parents 75e53d8 + a89c674 commit 87057e9

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

h2integrate/converters/grid/grid.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,7 @@ def setup(self):
227227
if self.config.electricity_buy_price is not None:
228228
self._buy_price_mode = self.config.buy_price_mode
229229
if self._buy_price_mode is None:
230-
# Default: scalar if single value, per_timestep if array
231-
if isinstance(self.config.electricity_buy_price, list | np.ndarray):
232-
self._buy_price_mode = "per_timestep"
233-
else:
234-
self._buy_price_mode = "per_timestep"
230+
self._buy_price_mode = "per_timestep"
235231

236232
if self._buy_price_mode == "per_year":
237233
buy_price_shape = plant_life
@@ -270,10 +266,7 @@ def setup(self):
270266
if self.config.electricity_sell_price is not None:
271267
self._sell_price_mode = self.config.sell_price_mode
272268
if self._sell_price_mode is None:
273-
if isinstance(self.config.electricity_sell_price, list | np.ndarray):
274-
self._sell_price_mode = "per_timestep"
275-
else:
276-
self._sell_price_mode = "per_timestep"
269+
self._sell_price_mode = "per_timestep"
277270

278271
if self._sell_price_mode == "per_year":
279272
sell_price_shape = plant_life

0 commit comments

Comments
 (0)