File: numpy-1.24.patch

package info (click to toggle)
prody 2.4.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 106,704 kB
  • sloc: python: 47,651; ansic: 6,865; cpp: 4,032; xml: 1,728; javascript: 146; makefile: 72
file content (19 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix test failure with Numpy 1.24.
Author: Bas Couwenberg <sebastic@debian.org>
Bug-Debian: https://bugs.debian.org/1027233

--- a/prody/compounds/pdbligands.py
+++ b/prody/compounds/pdbligands.py
@@ -158,9 +158,9 @@ def fetchPDBLigand(cci, filename=None):
     resnums = np.ones(n_atoms, dtype=ATOMIC_FIELDS['charge'].dtype)
 
     alternate_atomnames = np.zeros(n_atoms, dtype=ATOMIC_FIELDS['name'].dtype)
-    leaving_atom_flags = np.zeros(n_atoms, np.bool)
-    aromatic_flags = np.zeros(n_atoms, np.bool)
-    stereo_configs = np.zeros(n_atoms, np.bool)
+    leaving_atom_flags = np.zeros(n_atoms, bool)
+    aromatic_flags = np.zeros(n_atoms, bool)
+    stereo_configs = np.zeros(n_atoms, bool)
     ordinals = np.zeros(n_atoms, int)
 
     name2index = {}