We have two functions called update_marginal_costs(...) that are almost identical. One in add_electricity and one in build_powerplants. This one in add_electricity has an extra conditional (shown below), but other than that I believe they are identical. It is quite confusing to have two almost identical named functions that have almost identical logic.
Suggested Solution
Collapse these functions into a single function.
Additional Info
The one in add_electricity has this extra conditional in it:
Feature Request
We have two functions called
update_marginal_costs(...)
that are almost identical. One inadd_electricity
and one inbuild_powerplants
. This one inadd_electricity
has an extra conditional (shown below), but other than that I believe they are identical. It is quite confusing to have two almost identical named functions that have almost identical logic.Suggested Solution
Collapse these functions into a single function.
Additional Info
The one in
add_electricity
has this extra conditional in it: