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