From 106832624a597086d4824f9db9ee18978c9fd747 Mon Sep 17 00:00:00 2001 From: Scott Guthridge Date: Fri, 19 Apr 2024 23:25:23 -0700 Subject: [PATCH] Shorten class libraVNA check_cmds, timeout arguments default_check_cmds -> check_cmds default_timeout -> timeout --- Documentation/UserManual/SCPI_Examples/libreVNA.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/UserManual/SCPI_Examples/libreVNA.py b/Documentation/UserManual/SCPI_Examples/libreVNA.py index dcac991..c4213e1 100755 --- a/Documentation/UserManual/SCPI_Examples/libreVNA.py +++ b/Documentation/UserManual/SCPI_Examples/libreVNA.py @@ -70,15 +70,15 @@ class SocketStreamReader: class libreVNA: def __init__(self, host='localhost', port=19542, - default_check_cmds=True, default_timeout=1): + check_cmds=True, timeout=1): self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: self.sock.connect((host, port)) except: raise Exception("Unable to connect to LibreVNA-GUI. Make sure it is running and the TCP server is enabled.") self.reader = SocketStreamReader(self.sock, - default_timeout=default_timeout) - self.default_check_cmds = default_check_cmds + default_timeout=timeout) + self.default_check_cmds = check_cmds def __del__(self): self.sock.close()