Browse Source

IndexError: list index out of range in close_filtering #240 (#243)

pull/1/head
rozetko 6 years ago committed by GitHub
parent
commit
309704997b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      analytics/analytics/utils/common.py

2
analytics/analytics/utils/common.py

@ -229,6 +229,8 @@ def get_av_model(patterns_list):
return model_pat return model_pat
def close_filtering(pat_list, win_size): def close_filtering(pat_list, win_size):
if len(pat_list) == 0:
return []
s = [[pat_list[0]]] s = [[pat_list[0]]]
k = 0 k = 0
for i in range(1, len(pat_list)): for i in range(1, len(pat_list)):

Loading…
Cancel
Save