Skip to content

Commit

Permalink
Merge pull request #30 from szymonlopaciuk/fixes-for-updated-deps
Browse files Browse the repository at this point in the history
Minor bug fixes for new release of scipy and xtrack
  • Loading branch information
lgiacome authored Jan 15, 2025
2 parents 817fa9e + 98258d0 commit 4a7e279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_config_pipeline_for_wakes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions xwakes/wit/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4a7e279

Please sign in to comment.