From aa91224103e88d6f71a1671697b59e6162bd0ed2 Mon Sep 17 00:00:00 2001 From: justin212k Date: Thu, 22 Jun 2017 14:09:11 -0700 Subject: [PATCH] avoid np.diff on binary array fixes deprecated behavior: https://groups.google.com/forum/#!topic/qiime-forum/ccyPJWRFseA https://stackoverflow.com/questions/24216210/boolean-subtract-deprecationwarning --- qiime/split_libraries_fastq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiime/split_libraries_fastq.py b/qiime/split_libraries_fastq.py index 7cfc535b8d..70a2c0214e 100644 --- a/qiime/split_libraries_fastq.py +++ b/qiime/split_libraries_fastq.py @@ -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,