From 0dca5d004ab19dd9c27710bd3e9147631cb14109 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Wed, 3 Apr 2013 10:14:36 -0400 Subject: [PATCH] MAINT: Remove unused RiskReport.find_metric_by_end --- zipline/finance/risk.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/zipline/finance/risk.py b/zipline/finance/risk.py index c4f1477d..6df619a4 100644 --- a/zipline/finance/risk.py +++ b/zipline/finance/risk.py @@ -808,10 +808,3 @@ class RiskReport(object): cur_start = advance_by_months(cur_start, 1) return ends - - def find_metric_by_end(self, end_date, duration, metric): - col = getattr(self, duration + "_periods") - col = [getattr(x, metric) for x in col if x.end_date == end_date] - if len(col) == 1: - return col[0] - return None