Skip to content

Commit

Permalink
Fix createVariant
Browse files Browse the repository at this point in the history
  • Loading branch information
MANSOURI Assil Ext committed Feb 1, 2023
1 parent e29534d commit 4ce0bba
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 4ce0bba

Please sign in to comment.