fix 3
This commit is contained in:
@ -502,6 +502,7 @@ def run_pyqtgraph(args):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def update():
|
def update():
|
||||||
|
nonlocal ref_out_saved
|
||||||
changed = drain_queue() > 0
|
changed = drain_queue() > 0
|
||||||
if current_sweep is not None and x_shared is not None:
|
if current_sweep is not None and x_shared is not None:
|
||||||
# Применяем вычитание медианы для отображения
|
# Применяем вычитание медианы для отображения
|
||||||
@ -594,7 +595,6 @@ def run_pyqtgraph(args):
|
|||||||
|
|
||||||
# Автоматическое сохранение медианы при накоплении 1000+ свипов
|
# Автоматическое сохранение медианы при накоплении 1000+ свипов
|
||||||
if ref_out_file and not ref_out_saved and ring is not None:
|
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]))
|
filled_count = np.count_nonzero(~np.isnan(ring[:, 0]))
|
||||||
if filled_count >= 1000:
|
if filled_count >= 1000:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user