Source: siconos Version: 4.4.0+dfsg-6 Severity: important Tags: patch X-Debbugs-Cc: [email protected]
Dear Maintainer, === Forwarded from Ubuntu === The `mechanics-tools` autopkgtest is currently failing. The `/usr/bin/siconos_filter` script uses `numpy.in1d`, which has been deprecated and subsequently removed in recent versions of NumPy (NumPy 2.4). It needs to be replaced with `numpy.isin`. You can view the full failure logs here: https://autopkgtest.ubuntu.com/results/autopkgtest-stonking/stonking/amd64/s/siconos/20260622_142258_b5701@/log.gz Relevant Traceback snippet: ---------------------------------------------------------------------- File "/usr/bin/siconos_filter", line 118, in visitor time_idx = np.in1d(obj[:,0], self.times).nonzero()[0] ^^^^^^^ File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 792, in __getattr__ raise AttributeError(f"module {__name__!r} has no attribute {attr!r}") AttributeError: module 'numpy' has no attribute 'in1d'. Did you mean: 'int16'? ---------------------------------------------------------------------- Upstream context: There is no need to forward this issue upstream. Upstream is currently working on major changes (currently on rc1) that entirely removes the folder and file associated with this bug. However, since those upstream changes will take time to finalize and land, a simple interim patch replacing `np.in1d` with `np.isin` is necessary for Debian to restore the autopkgtests. --- a/io/swig/io/filter.py +++ b/io/swig/io/filter.py @@ -115,7 +115,7 @@ time_idx = self.time_idx # Time-filter all but static objects elif path != 'data/static': - time_idx = np.in1d(obj[:,0], self.times).nonzero()[0] + time_idx = np.isin(obj[:,0], self.times).nonzero()[0] # Additionally remove any lines referencing excluded objects if self.excluded_objects is not None: Thanks, vmpyr -- System Information: Debian Release: forky/sid APT prefers resolute-updates APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute') Architecture: amd64 (x86_64) Kernel: Linux 7.0.0-22-generic (SMP w/16 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled

