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)