diff --git a/simba/costs.py b/simba/costs.py index f04cd85..5d1a998 100644 --- a/simba/costs.py +++ b/simba/costs.py @@ -325,7 +325,8 @@ def set_electricity_costs(self): default_cost_strategy = vars(self.args)["strategy_" + station.get("type")] cost_strategy_name = "cost_calculation_strategy_" + station.get("type") - cost_calculation_strategy = vars(self.args).get(cost_strategy_name) or default_cost_strategy + cost_calculation_strategy = (vars(self.args).get(cost_strategy_name) + or default_cost_strategy) # calculate costs for electricity try: