This commit is contained in:
awe
2026-02-03 18:55:39 +03:00
parent d8b71b2cc4
commit 3a072f0298

View File

@ -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: