From 3a072f0298e5a43eeb2658e689823d34ed3dda62 Mon Sep 17 00:00:00 2001 From: awe Date: Tue, 3 Feb 2026 18:55:39 +0300 Subject: [PATCH] fix 3 --- rfg_adc_plotter/visualization/pyqtgraph_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfg_adc_plotter/visualization/pyqtgraph_backend.py b/rfg_adc_plotter/visualization/pyqtgraph_backend.py index 41fea2d..1595d75 100644 --- a/rfg_adc_plotter/visualization/pyqtgraph_backend.py +++ b/rfg_adc_plotter/visualization/pyqtgraph_backend.py @@ -502,6 +502,7 @@ def run_pyqtgraph(args): pass def update(): + nonlocal ref_out_saved changed = drain_queue() > 0 if current_sweep is not None and x_shared is not None: # Применяем вычитание медианы для отображения @@ -594,7 +595,6 @@ def run_pyqtgraph(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: