scikit-rf
scikit-rf copied to clipboard
vna.py: log sweeps with PNA
Similar to https://github.com/scikit-rf/scikit-rf/issues/15 for different hardware.
In PNA class frequency vector gets generated using f_start/f_stop/f_npoints, which assumes linear sweep. For log sweeps frequency vector will be wrong.
No fix from me just yet since I don't need log sweep ATM.
An idea for implementation: use first column from CALCulate
For generating log spaced steps numpy.geomspace — NumPy v1.12 Manual
numpy.geomspace(start, stop, num=50, endpoint=True, dtype=None)