Hello community, here is the log from the commit of package python-control for openSUSE:Factory checked in at 2020-07-10 14:13:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-control (Old) and /work/SRC/openSUSE:Factory/.python-control.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-control" Fri Jul 10 14:13:22 2020 rev:6 rq:819785 version:0.8.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-control/python-control.changes 2020-07-01 14:26:48.722789353 +0200 +++ /work/SRC/openSUSE:Factory/.python-control.new.3060/python-control.changes 2020-07-10 14:13:26.507639888 +0200 @@ -1,0 +2,5 @@ +Thu Jul 9 18:56:06 UTC 2020 - Benjamin Greiner <[email protected]> + +- add pr430-numpy119delete.patch to fix test failures with new numpy + +------------------------------------------------------------------- New: ---- pr430-numpy119delete.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-control.spec ++++++ --- /var/tmp/diff_new_pack.Vsvf7i/_old 2020-07-10 14:13:27.231642266 +0200 +++ /var/tmp/diff_new_pack.Vsvf7i/_new 2020-07-10 14:13:27.231642266 +0200 @@ -29,6 +29,7 @@ Patch0: pr365-copy-PR-320-for-robust_array_test.patch Patch1: pr366-ease-precision-tolerance.patch Patch2: pr380-fix-pytest-discovery.patch +Patch3: pr430-numpy119delete.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -57,9 +58,7 @@ %prep %setup -q -n control-%{version} -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 +%autopatch -p1 #remove shebang sed -i '1{\@^#!/usr/bin/env python@ d}' control/tests/*.py ++++++ pr430-numpy119delete.patch ++++++ >From 1c91dce12d054b0edf095172970cf64e9d9e7f6a Mon Sep 17 00:00:00 2001 From: bnavigator <[email protected]> Date: Thu, 9 Jul 2020 20:10:04 +0200 Subject: [PATCH] only call np.delete with actual removal --- control/iosys.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/control/iosys.py b/control/iosys.py index 908f407..e2bdb29 100644 --- a/control/iosys.py +++ b/control/iosys.py @@ -1643,8 +1643,10 @@ def find_eqpt(sys, x0, u0=[], y0=None, t=0, params={}, # and were processed above. # Get the states and inputs that were not listed as fixed - state_vars = np.delete(np.array(range(nstates)), ix) - input_vars = np.delete(np.array(range(ninputs)), iu) + state_vars = (range(nstates) if not len(ix) + else np.delete(np.array(range(nstates)), ix)) + input_vars = (range(ninputs) if not len(iu) + else np.delete(np.array(range(ninputs)), iu)) # Set the outputs and derivs that will serve as constraints output_vars = np.array(iy) -- 2.27.0
