File: numpy-1.24.patch

package info (click to toggle)
pairtools 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,508 kB
  • sloc: python: 8,128; sh: 123; makefile: 66; ansic: 31
file content (14 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix build/tests with numpy 1.24
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-12-30
--- a/pairtools/lib/stats.py
+++ b/pairtools/lib/stats.py
@@ -58,7 +58,7 @@
                 ** np.arange(
                     min_log10_dist, max_log10_dist + 0.001, log10_dist_bin_step
                 )
-            ).astype(np.int),
+            ).astype(np.int64),
         ]
 
         # establish structure of an empty _stat: