There is a difference between how booleans on numpy ints and regular ints are handled. Without setting count as a regular int, we get a numpy boolean, which can't be multiplied by marker. Following the change we get a regular boolean and are multiplying it by 1 or 0 to include it or not.
I accidentally have 2 commits for this because I initially said it was a fix for my computer only but then I wanted to change it to scrap that because Hongchun's computer needed the fix too and it made a new commit instead.
I also fixed a couple of typos in documentation strings or comments.
There is a difference between how booleans on numpy ints and regular ints are handled. Without setting count as a regular int, we get a numpy boolean, which can't be multiplied by marker. Following the change we get a regular boolean and are multiplying it by 1 or 0 to include it or not.
I accidentally have 2 commits for this because I initially said it was a fix for my computer only but then I wanted to change it to scrap that because Hongchun's computer needed the fix too and it made a new commit instead.
I also fixed a couple of typos in documentation strings or comments.