From b579e5b21ba12fb2f702517c0daa97d1ca21b3a8 Mon Sep 17 00:00:00 2001 From: Jonathan Oesterle <45066932+jonathanoesterle@users.noreply.github.com> Date: Wed, 20 Aug 2025 08:43:14 +0200 Subject: [PATCH 1/3] Fix nonlocal error F824 --- djimaging/tables/core/preprocesstraces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djimaging/tables/core/preprocesstraces.py b/djimaging/tables/core/preprocesstraces.py index 9aa19e8..b848b40 100644 --- a/djimaging/tables/core/preprocesstraces.py +++ b/djimaging/tables/core/preprocesstraces.py @@ -149,7 +149,7 @@ def gui_clip_trace(self, key): @widgets.interact(left=w_left, right=w_right, save=w_save) def plot_fit(left=0, right=trace.size - 1, save=False): - nonlocal title, key + nonlocal title plot_left_right_clipping(trace, trace_t, left, right, title) From dfc6a500dd1dde91f1787377223d0cfe297edb58 Mon Sep 17 00:00:00 2001 From: Jonathan Oesterle <45066932+jonathanoesterle@users.noreply.github.com> Date: Wed, 20 Aug 2025 08:44:03 +0200 Subject: [PATCH 2/3] Update traces.py --- djimaging/tables/core/traces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djimaging/tables/core/traces.py b/djimaging/tables/core/traces.py index 69d7cd3..cff8fe5 100644 --- a/djimaging/tables/core/traces.py +++ b/djimaging/tables/core/traces.py @@ -177,7 +177,7 @@ def gui_clip_trace(self, key): @widgets.interact(left=w_left, right=w_right, save=w_save) def plot_fit(left=0, right=trace.size - 1, save=False): - nonlocal title, key + nonlocal title plot_left_right_clipping(trace, trace_t, left, right, title) From 9fba781eb21b667e2596802ef2407f7257173b86 Mon Sep 17 00:00:00 2001 From: Jonathan Oesterle <45066932+jonathanoesterle@users.noreply.github.com> Date: Wed, 20 Aug 2025 08:45:17 +0200 Subject: [PATCH 3/3] Update ipl.py --- djimaging/tables/ipl/ipl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djimaging/tables/ipl/ipl.py b/djimaging/tables/ipl/ipl.py index 74004ed..00d2e2b 100644 --- a/djimaging/tables/ipl/ipl.py +++ b/djimaging/tables/ipl/ipl.py @@ -98,7 +98,7 @@ def gui(self, key, figsize=(8, 5), left0=12, right0=12, thick0=30, q_clip0=2.0, @widgets.interact(bot=w_bot, top=w_top, thick=w_thick, save=w_save) def plot_fit(left=left0, right=right0, thick=thick0, save=False): - nonlocal title, key, add_or_update + nonlocal title plot_field_and_fit(left, right, thick, ch0_avg, ch1_avg, figsize=figsize, extent=extent, title=title)