From b9d974069c1a1cf0821c3b19ffba92f11a902eeb Mon Sep 17 00:00:00 2001 From: Mason Proffitt Date: Fri, 20 Oct 2023 15:17:40 +0200 Subject: [PATCH] remove quoted lambda workaround in test --- tests/test_adl_benchmarks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_adl_benchmarks.py b/tests/test_adl_benchmarks.py index f5dc742..27d4f3e 100644 --- a/tests/test_adl_benchmarks.py +++ b/tests/test_adl_benchmarks.py @@ -1204,8 +1204,8 @@ def test_adl_benchmark_8(): ) # Quotes needed around lambda here due to https://github.com/iris-hep/func_adl/issues/127 .Select( - 'lambda event: (2 * event.leading_other_lepton_p4.pt * event.met.pt' - ' * (1 - np.cos(event.leading_other_lepton_p4.deltaphi(event.met)))) ** 0.5' + lambda event: (2 * event.leading_other_lepton_p4.pt * event.met.pt + * (1 - np.cos(event.leading_other_lepton_p4.deltaphi(event.met)))) ** 0.5 ) ) (