mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 03:10:19 +00:00
python3Packages.filterpy: fix scipy 1.12 deprecation warnings
This commit is contained in:
@@ -24,7 +24,12 @@ buildPythonPackage {
|
||||
hash = "sha256-KuuVu0tqrmQuNKYmDmdy+TU6BnnhDxh4G8n9BGzjGag=";
|
||||
};
|
||||
|
||||
patches = [ ./numpy-2.4-compat.patch ];
|
||||
patches = [
|
||||
./numpy-2.4-compat.patch
|
||||
|
||||
# https://github.com/rlabbe/filterpy/pull/331
|
||||
./scipy-1.12-deprecation.patch
|
||||
];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git a/filterpy/discrete_bayes/discrete_bayes.py b/filterpy/discrete_bayes/discrete_bayes.py
|
||||
index 084ba8c..c465835 100644
|
||||
--- a/filterpy/discrete_bayes/discrete_bayes.py
|
||||
+++ b/filterpy/discrete_bayes/discrete_bayes.py
|
||||
@@ -19,8 +19,7 @@ from __future__ import (absolute_import, division, print_function,
|
||||
unicode_literals)
|
||||
|
||||
import numpy as np
|
||||
-from scipy.ndimage.filters import convolve
|
||||
-from scipy.ndimage.interpolation import shift
|
||||
+from scipy.ndimage import convolve, shift
|
||||
|
||||
|
||||
def normalize(pdf):
|
||||
Reference in New Issue
Block a user