Commit f77d7a29 authored by Stephen Thompson's avatar Stephen Thompson

Issue #6 linting stuff

parent 2be58c4a
Pipeline #1462 failed with stages
in 32 minutes and 25 seconds
......@@ -245,9 +245,9 @@ class NDITracker:
for port in configuration.get("ports to use"):
self._tool_descriptors.append({"description" : port,
"port handle" : port,
"c_str port handle" :
str(port).encode()})
"port handle" : port,
"c_str port handle" :
str(port).encode()})
if "serial port" in configuration:
self._serial_port = configuration.get("serial port")
......@@ -386,7 +386,8 @@ class NDITracker:
if not self._tracker_type == "dummy":
ndiCommand(self._device, "BX:0801")
for i in range(len(self._tool_descriptors)):
return_array[i, 0] = self._tool_descriptors[i].get("port handle")
return_array[i, 0] = self._tool_descriptors[i].get(
"port handle")
return_array[i, 1] = timestamp
return_array[i, 2] = ndiGetBXFrame(
self._device,
......@@ -408,7 +409,8 @@ class NDITracker:
if not self._tracker_type == "dummy":
ndiCommand(self._device, "GX:0801")
for i in range(len(self._tool_descriptors)):
return_array[i, 0] = self._tool_descriptors[i].get("port handle")
return_array[i, 0] = self._tool_descriptors[i].get(
"port handle")
return_array[i, 1] = timestamp
return_array[i, 2] = ndiGetGXFrame(
self._device,
......@@ -440,7 +442,7 @@ class NDITracker:
Tells the NDI devices to start tracking.
:raise Exception: ValueError
"""
if ( self._state != 'ready' ):
if self._state != 'ready':
raise ValueError("""Called start tracking before device ready,
try calling connect first""")
......
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