From be5aaceca10d0f2531c48eb726b18cc51a62b21d Mon Sep 17 00:00:00 2001 From: awe Date: Tue, 9 Jun 2026 16:32:46 +0300 Subject: [PATCH] fix --- rfg_vna_viewer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfg_vna_viewer.py b/rfg_vna_viewer.py index b694fa2..36049c0 100644 --- a/rfg_vna_viewer.py +++ b/rfg_vna_viewer.py @@ -204,8 +204,8 @@ def process_main(main_ch1, main_ch2, ref_amplitude, ref_phase_aligned): # Normalize ch1/ch2 individually by ref amplitude ref_amp_safe = np.where(ref_amplitude > 1e-12, ref_amplitude, 1e-12) - norm_ch1 = ch1_v / ref_amp_safe - norm_ch2 = ch2_v / ref_amp_safe + norm_ch1 = ch1_v#ref_amp_safe + norm_ch2 = ch2_v#/ ref_amp_safe # Build normalized complex signal and subtract ref phase z_norm = (norm_ch1 + 1j * norm_ch2) * np.exp(-1j * ref_phase_aligned)