Skip to content

Commit 4a7e279

Browse files
authored
Merge pull request #30 from szymonlopaciuk/fixes-for-updated-deps
Minor bug fixes for new release of scipy and xtrack
2 parents 817fa9e + 98258d0 commit 4a7e279

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_config_pipeline_for_wakes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_config_pipeline_for_wakes(test_context):
7070

7171
line = xt.Line(elements=[wake1, wake2, wake3, wake_no_config, drift])
7272

73-
particles = xt.Particles(context=test_context)
73+
particles = xt.Particles(_context=test_context)
7474

7575
pipeline_manager = xw.config_pipeline_for_wakes(particles, line, communicator,
7676
elements_to_configure=None)

xwakes/wit/devices.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def g_addend(m):
180180

181181
else:
182182
# computes numerically the integral instead of using its approximation
183-
i, err = integrate.quadrature(_integrand_stupakov, half_gap_small, half_gap_big,
184-
tol=1.e-3, maxiter=200, vec_func=False)
183+
i, err = integrate.quad(_integrand_stupakov, half_gap_small, # noqa
184+
half_gap_big, epsabs=1.e-3, limit=200)
185185

186186
return i
187187

0 commit comments

Comments
 (0)