From 6bcc5057f70da66dd508ebc55bdf871cb35288b2 Mon Sep 17 00:00:00 2001
From: Delaigue Olivier <olivier.delaigue@irstea.priv>
Date: Mon, 22 Oct 2018 17:46:18 +0200
Subject: [PATCH] v1.1.2.9 NEW: ErrorCrit_KGE returns classes KGE and ErrorCrit

---
 DESCRIPTION       | 2 +-
 R/ErrorCrit_KGE.R | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 6295692f..a8cc9c13 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.1.2.8
+Version: 1.1.2.9
 Date: 2018-10-22
 Authors@R: c(
   person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
diff --git a/R/ErrorCrit_KGE.R b/R/ErrorCrit_KGE.R
index 1f28868f..b55e77e1 100644
--- a/R/ErrorCrit_KGE.R
+++ b/R/ErrorCrit_KGE.R
@@ -202,7 +202,8 @@ ErrorCrit_KGE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T
                         Multiplier      = Multiplier,
                         Ind_notcomputed = Ind_TS_ignore
     )
-    # class(OutputsCrit) <- c("ErrorCrit", "KGE")
+    
+    class(OutputsCrit) <- c("KGE", "ErrorCrit")
     return(OutputsCrit)
     
   }
-- 
GitLab