From 27cf4d183122c0f2dc645737b2338263d100f2c9 Mon Sep 17 00:00:00 2001 From: awe Date: Mon, 13 Jul 2026 17:34:34 +0300 Subject: [PATCH] gitignore update --- .gitignore | 6 ++++++ rfg_vna_viewer.py | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a58df3d..3a613c9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,9 @@ __pycache__/ .Python my_picocom_logfile.txt sample_data/ +*.zip +*.docx +*.docx# +*.raw +*.svg +.codex \ No newline at end of file diff --git a/rfg_vna_viewer.py b/rfg_vna_viewer.py index df64aae..020c015 100644 --- a/rfg_vna_viewer.py +++ b/rfg_vna_viewer.py @@ -278,10 +278,9 @@ def make_update(reader, parser, assembler, curves, plots): state["ref_phi0"] = ref_phase[0] state["ref_phi1"] = ref_phase[-1] - # Compute frequency axis from reference signal phase (linear phase-freq model) - phi0, phi1 = state["ref_phi0"], state["ref_phi1"] - freqs_ghz = (F_START_HZ / 1e9) + (ref_phase - phi0) / (phi1 - phi0) * (BW_HZ / 1e9) - freqs_hz = freqs_ghz * 1e9 + # Frequency axis: linear from F_START to F_STOP + freqs_hz = np.linspace(F_START_HZ, F_STOP_HZ, n) + freqs_ghz = freqs_hz / 1e9 # Fix reference phase from the first sweep if state["ref_phase_first"] is None: