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

v1.2.3.1 CLEAN: class returned by RunModel_CemaNeigeGR4J #5252

Showing with 6 additions and 3 deletions
+6 -3
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.2.3.0
Version: 1.2.3.1
Date: 2019-02-19
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
......@@ -13,7 +13,7 @@ output:
### 1.2.3.0 Release Notes (2019-02-19)
### 1.2.3.1 Release Notes (2019-02-19)
......
......@@ -174,7 +174,10 @@ RunModel_CemaNeigeGR4J <- function(InputsModel,RunOptions,Param, IsHyst = FALSE)
##End
rm(RESULTS);
class(OutputsModel) <- c("OutputsModel","daily","GR","CemaNeige", if(IsHyst) "hysteresis");
class(OutputsModel) <- c("OutputsModel","daily","GR","CemaNeige");
if(IsHyst) {
class(OutputsModel) <- c(class(OutputsModel), "hysteresis")
}
return(OutputsModel);
}
......
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