Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

avoid np.diff on binary array #2193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qiime/split_libraries_fastq.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _contiguous_regions(condition):
"""

# Find the indicies of changes in "condition"
d = np.diff(condition)
d = np.diff(condition.astype(np.int8))
idx, = d.nonzero()

# We need to start things after the change in "condition". Therefore,
Expand Down