Commit fa26d189 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.6.9.10; fix: check initial class instead of transformed class in SeriesAggreg.list

Refs #82
Showing with 5 additions and 5 deletions
+5 -5
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.6.9.9
Date: 2021-01-08
Version: 1.6.9.10
Date: 2021-01-11
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
person("Olivier", "Delaigue", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-7668-8468"), email = "airGR@inrae.fr"),
......
......@@ -2,7 +2,7 @@
### 1.6.9.9 Release Notes (2021-01-08)
### 1.6.9.10 Release Notes (2021-01-11)
#### New features
......
......@@ -17,11 +17,11 @@ SeriesAggreg.list <- function(x,
call. = FALSE)
}
# Check ConvertFun
if (any(class(x) %in% c("InputsModel", "OutputsModel"))) {
if (any(classIni %in% c("InputsModel", "OutputsModel"))) {
if (!all(is.na(ConvertFun))) {
warning("Argument 'ConvertFun' is ignored on 'InputsModel' and 'OutputsModel' objects")
}
} else if (length(ConvertFun)!=1) {
} else if (length(ConvertFun) != 1) {
stop("Argument 'ConvertFun' must be of length 1 with 'list' object")
} else if (!is.character(ConvertFun)) {
stop("Argument 'ConvertFun' must be a 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