Skip to content

Commit

Permalink
readBindingConstraints() minor fix to read BC v870 from API
Browse files Browse the repository at this point in the history
  • Loading branch information
BERTHET Clement (Externe) committed Mar 14, 2024
1 parent 134138f commit 2f5541d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions R/readBindingConstraints.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,14 @@ readBindingConstraints <- function(opts = simOptions()) {

# check path file
# multiple path for "both" case
if(!all(file.exists(path_file_value)))
stop("Time series file for binding constraint ",
binding_object$id,
" not exist",
call. = FALSE)
if(opts$typeLoad != "api"){
if(!all(file.exists(path_file_value)))
stop("Time series file for binding constraint ",
binding_object$id,
" not exist",
call. = FALSE)
}


# Read files
# both case
Expand Down

0 comments on commit 2f5541d

Please sign in to comment.