lmdk_lib: Histograms must have ints
This commit is contained in:
parent
0aca4ec9c1
commit
75c4e6e2ed
@ -209,7 +209,7 @@ def get_hist(seq, lmdks):
|
||||
h = math.ceil(max(seq)/math.ceil(max(seq)/math.ceil(h)))
|
||||
|
||||
# Create an empty histogram with intervals of size h
|
||||
hist = np.zeros(math.ceil(max(seq)/h))
|
||||
hist = np.zeros(math.ceil(max(seq)/h), dtype = int)
|
||||
|
||||
for lmdk in lmdks:
|
||||
hist[int(lmdk/h) - 1] += 1
|
||||
@ -912,7 +912,7 @@ def find_lmdks_seq(seq, lmdks):
|
||||
for i, p in enumerate(seq):
|
||||
if any(np.equal(lmdks, p).all(1)):
|
||||
lmdks_seq.append(i + 1)
|
||||
return np.numpy(lmdks_seq, dtype = int)
|
||||
return np.array(lmdks_seq, dtype = int)
|
||||
|
||||
|
||||
def find_lmdks_tim(lmdk_data, seq, uid, pct):
|
||||
|
Loading…
Reference in New Issue
Block a user