Skip to content

Commit

Permalink
Update idr.py
Browse files Browse the repository at this point in the history
Fix for numpy versioning - see nboley#64 (comment)
  • Loading branch information
jpcartailler authored May 14, 2024
1 parent 74665e7 commit 121c159
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions idr/idr.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,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.int_),
numpy.array(rank2, dtype=numpy.int_) )

def build_idr_output_line_with_bed6(
m_pk, IDR, localIDR, output_file_type, signal_type,
Expand Down

0 comments on commit 121c159

Please sign in to comment.