Return-Path: X-Original-To: apmail-climate-commits-archive@minotaur.apache.org Delivered-To: apmail-climate-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 033F5119A5 for ; Fri, 20 Jun 2014 15:51:49 +0000 (UTC) Received: (qmail 18216 invoked by uid 500); 20 Jun 2014 15:51:49 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 18133 invoked by uid 500); 20 Jun 2014 15:51:48 -0000 Mailing-List: contact commits-help@climate.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.apache.org Delivered-To: mailing list commits@climate.apache.org Received: (qmail 18101 invoked by uid 99); 20 Jun 2014 15:51:48 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 15:51:48 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A0911987391; Fri, 20 Jun 2014 15:51:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: goodale@apache.org To: commits@climate.apache.org Date: Fri, 20 Jun 2014 15:51:50 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/4] git commit: CLIMATE-476 - Add __str__ implementation to Evaluation CLIMATE-476 - Add __str__ implementation to Evaluation Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/be6b4b85 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/be6b4b85 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/be6b4b85 Branch: refs/heads/master Commit: be6b4b85d9a04d2d854feda27ccbaa761f43037a Parents: cf7395a Author: Michael Joyce Authored: Thu Jun 19 12:49:57 2014 -0700 Committer: Michael Joyce Committed: Thu Jun 19 12:49:57 2014 -0700 ---------------------------------------------------------------------- ocw/evaluation.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/be6b4b85/ocw/evaluation.py ---------------------------------------------------------------------- diff --git a/ocw/evaluation.py b/ocw/evaluation.py index 9f7dfee..a27a27f 100644 --- a/ocw/evaluation.py +++ b/ocw/evaluation.py @@ -299,3 +299,20 @@ class Evaluation(object): unary_results[-1].append(metric.run(target)) return unary_results + def __str__(self): + formatted_repr = ( + "" + ) + + return formatted_repr.format( + str(self._ref_dataset), + [str(ds) for ds in self.target_datasets], + [str(m) for m in self.metrics], + [str(m) for m in self.unary_metrics], + str(self.subregions) + ) +