Skip to content

Commit 68e2b8c

Browse files
committed
DOC: add comment to change made ref'ing #562
1 parent 58d4348 commit 68e2b8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

empress/tools.py

+3
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ def shifting(bitlist, size=51):
374374
if not all(x in [0, 1] for x in bitlist):
375375
raise ValueError('Your list has values other than 0-1s')
376376

377+
# Convert all the bits to ints -- if they are np.uint8, etc. instead and
378+
# we don't convert them, then this can cause problems: see
379+
# https://github.com/biocore/empress/issues/562
377380
bitlist = [int(x) for x in bitlist]
378381

379382
values = [iter(bitlist)] * size

0 commit comments

Comments
 (0)