From 60a35b690f3277087c800ecdec67910f87aa71af Mon Sep 17 00:00:00 2001 From: awe Date: Tue, 3 Feb 2026 19:13:33 +0300 Subject: [PATCH] fix debug --- rfg_adc_plotter/visualization/matplotlib_backend.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rfg_adc_plotter/visualization/matplotlib_backend.py b/rfg_adc_plotter/visualization/matplotlib_backend.py index e1c8878..d87180b 100644 --- a/rfg_adc_plotter/visualization/matplotlib_backend.py +++ b/rfg_adc_plotter/visualization/matplotlib_backend.py @@ -595,6 +595,10 @@ def run_matplotlib(args): status_text.set_text(format_status_kv(current_info)) # Автоматическое сохранение медианы при накоплении 1000+ свипов + # DEBUG: Проверяем условия каждые 100 кадров + if _frame is not None and _frame % 100 == 0: + print(f"[ref-out DEBUG] _frame={_frame}, ref_out_file={bool(ref_out_file)}, ref_out_saved={ref_out_saved}, ring={'OK' if ring is not None else 'None'}") + if ref_out_file and not ref_out_saved and ring is not None: filled_count = np.count_nonzero(~np.isnan(ring[:, 0])) # DEBUG: Выводим прогресс каждые 100 свипов