Commit 4a69a1e5 authored by Guofang Xiao's avatar Guofang Xiao

Issue #9: Fixed get_tool_descriptions().

parent 85bd97f1
Pipeline #1791 passed with stages
in 10 minutes and 2 seconds
......@@ -10,3 +10,6 @@
# PyInstaller
build/
dist/
# Virtual environment
venv/
\ No newline at end of file
......@@ -447,11 +447,11 @@ class NDITracker:
def get_tool_descriptions(self):
""" Returns the port handles and tool descriptions """
descriptions = []
port_handles = []
descriptions = []
for i in range(len(self._tool_descriptors)):
descriptions.append(i)
port_handles.append(self._tool_descriptors[i].get("description"))
port_handles.append(self._tool_descriptors[i].get("port handle"))
descriptions.append(self._tool_descriptors[i].get("description"))
return port_handles, descriptions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment