Skip to content

Commit

Permalink
Add threading option
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie committed Oct 2, 2024
1 parent b731e1c commit 414f3de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qualang_tools/control_panel/voltage_control/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def start_voltage_control(use_thread: bool = False, gui_name: str = "Voltage con
t = threading.Thread(
target=start_voltage_control,
name=gui_name,
args=(VoltageControlDialog, gui_name, *args),
kwargs={"use_thread": False, **kwargs},
args=args,
kwargs={"use_thread": False, "gui_name": gui_name, **kwargs},
)
t.start()
return t
Expand All @@ -46,4 +46,4 @@ def start_voltage_control(use_thread: bool = False, gui_name: str = "Voltage con

# Create dummy parameters
parameters = [ManualParameter(f"V{idx}", initial_value=np.round(np.random.rand(), 3)) for idx in range(15)]
start_voltage_control(parameters=parameters, mini=True)
start_voltage_control(parameters=parameters, mini=True, use_thread=False)

0 comments on commit 414f3de

Please sign in to comment.