lmdk_bgt.discount: We need at least 2 things
This commit is contained in:
parent
8db5adaf48
commit
f44ec6d9cd
@ -446,7 +446,7 @@ def discount(seq, lmdks, epsilon):
|
||||
samp_rt = .5
|
||||
for i, p in enumerate(seq):
|
||||
# Adjust the sampling rate
|
||||
if len(lmdks):
|
||||
if len(lmdks) > 1:
|
||||
samp_rt = datetime.fromtimestamp(int(lmdks[lmdk_cur][3]))/datetime.fromtimestamp(int(lmdks[len(lmdks) - 1][3]))
|
||||
# Check if current point is a landmark
|
||||
if lmdk_lib.is_landmark(p, lmdks):
|
||||
|
Loading…
Reference in New Issue
Block a user