Skip to content

Commit

Permalink
Merge pull request #68 from rte-antares-rpackage/fixopts_createVariant
Browse files Browse the repository at this point in the history
Fix createVariant
  • Loading branch information
AssilMa authored Feb 1, 2023
2 parents e29534d + 4ce0bba commit b17da65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
BUGFIXES :

* Fix case sensitivity for `editCluster()` in API mode
* Fix opts returned (proper new study_id) when using `createVariant()`



Expand Down
4 changes: 1 addition & 3 deletions R/API.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,8 @@ createVariant <- function(name, opts = antaresRead::simOptions()) {
} else {
cli::cli_alert_danger("Failed to create variant")
}
opts$study_id <- content(result)
opts$modeAPI <- "sync"
opts <- setSimulationPathAPI(host=opts$host, token=opts$token, study_id=content(result), simulation="input")
options("antaresEditObject.apiCommands" = list())
options(antares = opts)
return(invisible(opts))
}

Expand Down

0 comments on commit b17da65

Please sign in to comment.