File tree Expand file tree Collapse file tree
h2integrate/converters/grid Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments