Bug#1136873:

Ujjwal Sarswat ujjwal.sarswat at canonical.com
Mon Jun 29 11:32:06 BST 2026


Dear Maintainer,

I am writing to confirm that we are experiencing this exact same issue over
in Ubuntu during the mechanics-tools autopkgtests and local builds.

To help get this resolved, I have put together the necessary interim
patches for both the `numpy.in1d` deprecation and the stricter
dimensionality enforcement in NumPy 2.4.

As a quick note on the upstream context: there is no need to forward these
patches upstream. They are currently working on a major architectural
change (currently on rc1) that entirely removes the directories and files
associated with these bugs. However, since those upstream changes will take
time to land, these simple interim patches are necessary for Debian/Ubuntu
to restore the builds and pass the test suites.

Here are the combined patches fixing the `siconos_filter` and
`test_bouncing_ball.py` scripts:

--- 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:

--- a/kernel/swig/tests/test_bouncing_ball.py
+++ b/kernel/swig/tests/test_bouncing_ball.py
@@ -237,13 +237,13 @@
      data[0, 1] = ball.q()[0]
      data[0, 2] = ball.velocity()[0]
      data[0, 3] = ball.p(1)[0]
-    data[0, 4] = inter.lambda_(1)
+    data[0, 4] = inter.lambda_(1)[0]

      data_d[0, 0] = t0
      data_d[0, 1] = ball_d.q()[0]
      data_d[0, 2] = ball_d.velocity()[0]
      data_d[0, 3] = ball_d.p(1)[0]
-    data_d[0, 4] = inter_d.lambda_(1)
+    data_d[0, 4] = inter_d.lambda_(1)[0]

      k = 1

These patches have been uploaded to Ubuntu already:
https://code.launchpad.net/~vmpyr/ubuntu/+source/siconos/+git/siconos/+merge/507309

Hope this helps speed up the fix!

Thanks,
vmpyr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260629/c97cd84b/attachment-0001.htm>


More information about the debian-science-maintainers mailing list