This commit is contained in:
awe
2026-06-09 16:32:46 +03:00
parent 16fa20c8ee
commit be5aaceca1

View File

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