Commit cf4aa465 authored by David's avatar David
Browse files

feat(CreateController): allow NULL location for Y an U

Refs #174
parent 7c4518f2
1 merge request!106Resolve "Run a supervised model from a previous run and changing inputs"
Pipeline #60956 passed with stage
in 7 minutes and 26 seconds
Showing with 1 addition and 0 deletions
+1 -0
...@@ -70,6 +70,7 @@ CreateController <- function(supervisor, ctrl.id, Y, U, FUN){ ...@@ -70,6 +70,7 @@ CreateController <- function(supervisor, ctrl.id, Y, U, FUN){
#' # For pointing the discharge at the oulet of basins "54095" and "54002" #' # For pointing the discharge at the oulet of basins "54095" and "54002"
#' CreateControl(c("54095", "54002")) #' CreateControl(c("54095", "54002"))
CreateControl <- function(locations, sv, isU) { CreateControl <- function(locations, sv, isU) {
if (is.null(locations)) return(NULL)
if (!is.character(locations)) { if (!is.character(locations)) {
stop("Parameters `Y` and `U` should be character") stop("Parameters `Y` and `U` should be character")
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment