Skip to content

Commit

Permalink
Rename strategy to cost_strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulScheerRLI committed Sep 17, 2024
1 parent af9c5d9 commit c4cebcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simba/costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ def set_electricity_costs(self):
# If no value is set, use the same strategy as the charging strategy
default_cost_strategy = vars(self.args)["strategy_" + station.get("type")]

strategy_name = "cost_calculation_strategy_" + station.get("type")
cost_calculation_strategy = vars(self.args).get(strategy_name) or default_cost_strategy
cost_strategy_name = "cost_calculation_strategy_" + station.get("type")
cost_calculation_strategy = vars(self.args).get(cost_strategy_name) or default_cost_strategy

# calculate costs for electricity
try:
Expand Down

0 comments on commit c4cebcd

Please sign in to comment.