Skip to content

Commit

Permalink
DOC: add comment to change made ref'ing biocore#562
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Aug 4, 2024
1 parent 58d4348 commit 68e2b8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions empress/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ def shifting(bitlist, size=51):
if not all(x in [0, 1] for x in bitlist):
raise ValueError('Your list has values other than 0-1s')

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

values = [iter(bitlist)] * size
Expand Down

0 comments on commit 68e2b8c

Please sign in to comment.