Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 850 B view raw
1Description: Remove deprecated use of np.float 2Author: Marcel Stimberg <marcel.stimberg@inserm.fr> 3Bug-Debian: https://bugs.debian.org/1027193 4Applied-Upstream: 61ef84b316a3d0a892298adf51abd8ac50900758 5Last-Update: 2023-01-06 6--- 7This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ 8--- brian.orig/brian2/units/fundamentalunits.py 9+++ brian/brian2/units/fundamentalunits.py 10@@ -1597,7 +1597,7 @@ 11 unitless = np.array(self / best_unit, copy=False) 12 threshold = np.get_printoptions()['threshold'] // 100 13 if unitless.ndim == 0: 14- sympy_quantity = np.float(unitless) 15+ sympy_quantity = float(unitless) 16 elif unitless.ndim == 1: 17 array_str = np.array2string(unitless, separator=" & ", threshold=threshold, 18 max_line_width=sys.maxsize)