depot/third_party/nixpkgs/pkgs/development/python-modules/pykalman/fix-p311-issues.patch
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

13 lines
372 B
Diff

--- a/pykalman/utils.py
+++ b/pykalman/utils_copy.py
@@ -40,6 +40,10 @@
from scipy import linalg
+# monkey patch
+if not hasattr(inspect, 'getargspec'):
+ inspect.getargspec = inspect.getfullargspec
+
def array1d(X, dtype=None, order=None):
"""Returns at least 1-d array with data from X"""
return np.asarray(np.atleast_1d(X), dtype=dtype, order=order)