From 34252b6bc419476ed222b3c20ee61c3774cb4244 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Oct 2026 23:20:31 +0000 Subject: [PATCH 1/2] Initial plan From b7b648590413c87f6eaabcfb320d3dc659846639 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Oct 2026 23:21:45 +0000 Subject: [PATCH 2/2] Apply remaining changes Co-authored-by: oliviermattelaer <33414646+oliviermattelaer@users.noreply.github.com> --- madspace/tests/test_beam_frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/madspace/tests/test_beam_frame.py b/madspace/tests/test_beam_frame.py index a70c31d83c..38d88c24a3 100644 --- a/madspace/tests/test_beam_frame.py +++ b/madspace/tests/test_beam_frame.py @@ -73,7 +73,7 @@ def test_beam_rapidity(rng, mode, leptonic): r = rng.random((N, sym.random_dim())) p_sym, x1_sym, x2_sym, det_sym = map(to_numpy, sym.map_forward([r], [])) p_lab, x1, x2, det = map(to_numpy, lab.map_forward([r], [])) - x1, x2 = np.broadcast_to(x1, (N,)), np.broadcast_to(x2, (N,)) + x1, x2 = np.broadcast_to(x1, (N,)).copy(), np.broadcast_to(x2, (N,)).copy() ok = det_sym > 0 # same point, same weight: the lab frame is a longitudinal boost away