diff --git a/rfg_adc_plotter/visualization/matplotlib_backend.py b/rfg_adc_plotter/visualization/matplotlib_backend.py index 05b3da0..f3d56f8 100644 --- a/rfg_adc_plotter/visualization/matplotlib_backend.py +++ b/rfg_adc_plotter/visualization/matplotlib_backend.py @@ -436,7 +436,7 @@ def run_matplotlib(args): return base.T # (bins, time) def update(_frame): - nonlocal frames_since_ylim_update + nonlocal frames_since_ylim_update, ref_out_saved changed = drain_queue() > 0 # Обновление линии последнего свипа @@ -592,7 +592,6 @@ def run_matplotlib(args): # Автоматическое сохранение медианы при накоплении 1000+ свипов if ref_out_file and not ref_out_saved and ring is not None: - nonlocal ref_out_saved filled_count = np.count_nonzero(~np.isnan(ring[:, 0])) if filled_count >= 1000: try: