Skip to content

Commit

Permalink
fix writeEconomicOptions API + hydro doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MANSOURI Assil Ext committed Mar 31, 2023
1 parent c282f1d commit 986f0c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions R/writeEconomicOptions.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ writeEconomicOptions <- function(x,
}
)

if (!is.null(x$spread_unsupplied_energy_cost)) {
if (!is.null(x$average_unsupplied_energy_cost)) {
cmd <- api_command_generate(
action = "update_config",
target = "input/thermal/areas/unserverdenergycost",
data = setNames(as.list(x$spread_unsupplied_energy_cost), x$area)
data = setNames(as.list(x$average_unsupplied_energy_cost), x$area)
)
api_command_register(cmd, opts = opts)
`if`(
Expand Down
6 changes: 3 additions & 3 deletions man/writeHydroValues.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 986f0c7

Please sign in to comment.