From 2fcb463353c64823987f9397cb4f5bab3ed9b748 Mon Sep 17 00:00:00 2001 From: Netsanet Legesse Gebremedhin <> Date: Wed, 29 Mar 2023 15:57:26 -0400 Subject: [PATCH] Fix for issue where np.int is a deprecated alias for the built-in int in future versions of numpy --- idr/idr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idr/idr.py b/idr/idr.py index 2849c1f..4f613dc 100644 --- a/idr/idr.py +++ b/idr/idr.py @@ -296,8 +296,8 @@ def build_rank_vectors(merged_peaks): rank1 = numpy.lexsort((numpy.random.random(len(s1)), s1)).argsort() rank2 = numpy.lexsort((numpy.random.random(len(s2)), s2)).argsort() - return ( numpy.array(rank1, dtype=numpy.int), - numpy.array(rank2, dtype=numpy.int) ) + return ( numpy.array(rank1, dtype=numpy.int32), + numpy.array(rank2, dtype=numpy.int32) ) def build_idr_output_line_with_bed6( m_pk, IDR, localIDR, output_file_type, signal_type,