From 0874a8aaf67db83caa29ccb743757876b392b6a7 Mon Sep 17 00:00:00 2001 From: awe Date: Fri, 10 Apr 2026 20:43:11 +0300 Subject: [PATCH] sqrt add --- rfg_adc_plotter/io/sweep_parser_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfg_adc_plotter/io/sweep_parser_core.py b/rfg_adc_plotter/io/sweep_parser_core.py index acffab9..c84673f 100644 --- a/rfg_adc_plotter/io/sweep_parser_core.py +++ b/rfg_adc_plotter/io/sweep_parser_core.py @@ -36,7 +36,7 @@ def tty_ch_pair_to_sweep(ch_1: int, ch_2: int) -> float: """Reduce a raw CH1/CH2 TTY point to power-like scalar ``ch1^2 + ch2^2``.""" ch_1_i = int(ch_1) ch_2_i = int(ch_2) - return float((ch_1_i * ch_1_i) + (ch_2_i * ch_2_i)) + return float(((ch_1_i * ch_1_i) + (ch_2_i * ch_2_i))**0.5) class AsciiSweepParser: