From 98258d0c1cfdfd08225d7e7dd5e225b2b456529d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20=C5=81opaciuk?= Date: Wed, 15 Jan 2025 11:58:50 +0100 Subject: [PATCH] Minor bug fixes for new release of scipy and xtrack --- tests/test_config_pipeline_for_wakes.py | 2 +- xwakes/wit/devices.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_config_pipeline_for_wakes.py b/tests/test_config_pipeline_for_wakes.py index 92c69e64..0779550f 100644 --- a/tests/test_config_pipeline_for_wakes.py +++ b/tests/test_config_pipeline_for_wakes.py @@ -70,7 +70,7 @@ def test_config_pipeline_for_wakes(test_context): line = xt.Line(elements=[wake1, wake2, wake3, wake_no_config, drift]) - particles = xt.Particles(context=test_context) + particles = xt.Particles(_context=test_context) pipeline_manager = xw.config_pipeline_for_wakes(particles, line, communicator, elements_to_configure=None) diff --git a/xwakes/wit/devices.py b/xwakes/wit/devices.py index 8125ca90..90538c7a 100644 --- a/xwakes/wit/devices.py +++ b/xwakes/wit/devices.py @@ -180,8 +180,8 @@ def g_addend(m): else: # computes numerically the integral instead of using its approximation - i, err = integrate.quadrature(_integrand_stupakov, half_gap_small, half_gap_big, - tol=1.e-3, maxiter=200, vec_func=False) + i, err = integrate.quad(_integrand_stupakov, half_gap_small, # noqa + half_gap_big, epsabs=1.e-3, limit=200) return i