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) 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) 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)