Skip to content

Commit

Permalink
Declare module class to fix typing error.
Browse files Browse the repository at this point in the history
  • Loading branch information
TNO-Selene authored and TNO-Selene committed Apr 29, 2024
1 parent a47e40a commit fc6731c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qcodes_contrib_drivers/drivers/Minicircuits/ZTM.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ def __init__(self, name: str, address: str, port: int = 23):
print(config)
module_codes = [int(code) for code in config.split(";")]

module: MiniCircuitsModule # Declare module variable as MiniCircuitsModule type

for i, module_code in enumerate(module_codes):
if module_code == 1:
module = SPDTModule(self, f"module_{i+1}", i+1)
Expand Down

0 comments on commit fc6731c

Please sign in to comment.