Skip to content

Commit

Permalink
if synthesis is TRUE, mcYears value is useless
Browse files Browse the repository at this point in the history
  • Loading branch information
kemihak committed Oct 16, 2024
1 parent 8e9d85c commit 41d956d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/readAntares.R
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ readAntaresAPI <- function(areas = NULL,
# mcYear
if (!is.null(mcYears)) {
mcYears <- intersect(mcYears, opts[["mcYears"]])
if (identical(sort(mcYears), sort(opts[["mcYears"]])) | length(mcYears) == 0) {
if (identical(sort(mcYears), sort(opts[["mcYears"]])) | length(mcYears) == 0 | synthesis) {
mcYears <- ""
}
}
Expand Down

0 comments on commit 41d956d

Please sign in to comment.