mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-28 12:51:29 +08:00
MAINT: Remove unused RiskReport.find_metric_by_end
This commit is contained in:
1 parent
94f1152353
commit
0dca5d004a
1 file changed
-7
@@ -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
|
||||
Reference in new issue
Block a user