From 68e2b8c5747ecc826b1d2ec525d28ad7c54c8efc Mon Sep 17 00:00:00 2001 From: Marcus Fedarko Date: Sun, 4 Aug 2024 07:06:15 -0700 Subject: [PATCH] DOC: add comment to change made ref'ing #562 --- empress/tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/empress/tools.py b/empress/tools.py index c5b7b3c4..678e5c3b 100644 --- a/empress/tools.py +++ b/empress/tools.py @@ -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