diff --git a/DESCRIPTION b/DESCRIPTION index 7a4d3b57a319e3488c4e1e26050cacd8134cc257..a951387893715a61b4dfcfd9a868f6dcb03702d4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: airGR Type: Package Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling -Version: 1.0.9.35 +Version: 1.0.9.36 Date: 2017-09-05 Authors@R: c( person("Laurent", "Coron", role = c("aut", "trl")), diff --git a/R/plot.OutputsModel.R b/R/plot.OutputsModel.R index 6249041f3c82835963d5d7d1b7276756479adda7..0b93be4824bca255ee85addaa1984a5c3f7bbd64 100644 --- a/R/plot.OutputsModel.R +++ b/R/plot.OutputsModel.R @@ -20,7 +20,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = if (sum(is.na(Qobs)) != length(Qobs)) { BOOL_Qobs <- TRUE } - } else { + } else if (inherits(OutputsModel, "GR")) { warning("Incorrect length of Qobs. Time series of observed flow not drawn.") } BOOL_Snow <- FALSE;