From d8b71b2cc491b7548201ec83d5c8a77ad6723ca5 Mon Sep 17 00:00:00 2001 From: awe Date: Tue, 3 Feb 2026 15:34:37 +0300 Subject: [PATCH] fix 2 --- rfg_adc_plotter/visualization/matplotlib_backend.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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: