fix vswr plots for S11 > 0dB
All checks were successful
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 21s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Successful in 25s

This commit is contained in:
Brendan Haines 2025-01-17 00:34:29 -07:00
parent 80fd25e7e4
commit 8f61cd85d0

View File

@ -47,7 +47,7 @@ def db20(v: npt.ArrayLike) -> npt.ArrayLike:
def s2vswr(s: npt.ArrayLike) -> npt.ArrayLike: def s2vswr(s: npt.ArrayLike) -> npt.ArrayLike:
return (1 + np.abs(s)) / (1 - np.abs(s)) return np.abs((1 + np.abs(s)) / (1 - np.abs(s)))
def minmax(x): def minmax(x):