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

v1.6.9.7 fix: add an exception in .ExtractInputsModel for calling...

v1.6.9.7 fix: add an exception in .ExtractInputsModel for calling .ExtractOutputsModel on the field OutputsModel
Refs #67
parent cb746f9e
Pipeline #18987 passed with stages
in 12 minutes and 23 seconds
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.6.9.6
Version: 1.6.9.7
Date: 2021-01-08
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -2,7 +2,7 @@
### 1.6.9.6 Release Notes (2021-01-08)
### 1.6.9.7 Release Notes (2021-01-08)
#### New features
......
......@@ -94,7 +94,11 @@
res0 <- x[i]
}
if (is.list(x) & !inherits(x, "POSIXt")) {
res0 <- .ExtractInputsModel(x = x, i = i)
if (inherits(x, "OutputsModel")) {
res0 <- .ExtractOutputsModel(x = x, i = i)
} else {
res0 <- .ExtractInputsModel(x = x, i = i)
}
}
return(res0)
})
......
Markdown is supported
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