From b8c0ef71c0eca94c1b232e4462dee3dafabce4db Mon Sep 17 00:00:00 2001 From: Philipp Schmidt <philipp.schmidt@xfel.eu> Date: Tue, 11 Mar 2025 09:29:46 +0100 Subject: [PATCH] Fix deprecated return signature of discriminators in PPT reconstruction --- notebooks/REMI/REMI_Digitize_and_Transform.ipynb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notebooks/REMI/REMI_Digitize_and_Transform.ipynb b/notebooks/REMI/REMI_Digitize_and_Transform.ipynb index bd867ae23..d91584eb0 100644 --- a/notebooks/REMI/REMI_Digitize_and_Transform.ipynb +++ b/notebooks/REMI/REMI_Digitize_and_Transform.ipynb @@ -304,8 +304,7 @@ " discr_func, discr_params = remi.get_discriminator([trigger_edge_channel])\n", "\n", " edges = np.zeros(1000, dtype=np.float64)\n", - " num_pulses = discr_func(trigger_trace, edges=edges, **discr_params[0])\n", - " edges = edges[:num_pulses]\n", + " edges, _, num_pulses = discr_func(trigger_trace, edges=edges, **discr_params[0])\n", "\n", " first_edge = edges[0]\n", " rel_edges = np.round(edges - first_edge)\n", -- GitLab