Skip to content

Commit

Permalink
Merge pull request #238 from rte-antares-rpackage/feature/scenarized_bc
Browse files Browse the repository at this point in the history
readBindingConstraints() minor fix to read BC v870 from API
  • Loading branch information
berthetclement authored Mar 14, 2024
2 parents 134138f + 2f5541d commit 7a6dd63
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)

Check warning on line 165 in R/readBindingConstraints.R

View check run for this annotation

Codecov / codecov/patch

R/readBindingConstraints.R#L162-L165

Added lines #L162 - L165 were not covered by tests
}


# Read files
# both case
Expand Down

0 comments on commit 7a6dd63

Please sign in to comment.