From ec010af9476a8bb1d6ee2f44e1dfa8af5d05b8ac Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Fri, 6 Dec 2024 23:12:11 -0700 Subject: [PATCH] calibrated measurements look a little funky --- charon_vna/vna.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charon_vna/vna.py b/charon_vna/vna.py index 0a6bcf5..beb0144 100644 --- a/charon_vna/vna.py +++ b/charon_vna/vna.py @@ -327,11 +327,11 @@ plt.show() cal_frequency = np.linspace(70e6, 600e6, 101) ideal_cal_frequency = rf.Frequency(np.min(cal_frequency), np.max(cal_frequency), len(cal_frequency)) input("Connect SHORT and press ENTER...") -short = vna_capture(frequency=cal_frequency) +short = sdr.vna_capture(frequency=cal_frequency) input("Connect OPEN and press ENTER...") -open = vna_capture(frequency=cal_frequency) +open = sdr.vna_capture(frequency=cal_frequency) input("Connect LOAD and press ENTER...") -load = vna_capture(frequency=cal_frequency) +load = sdr.vna_capture(frequency=cal_frequency) short_net = s2net(short) open_net = s2net(open) @@ -345,7 +345,7 @@ calibration = rf.calibration.OnePort( # %% -s = vna_capture(frequency=cal_frequency) +s = sdr.vna_capture(frequency=cal_frequency) # %% s_calibrated = calibration.apply_cal(s2net(s))