Skip to content

Commit 98865bb

Browse files
committed
less yapping
1 parent 4e3cace commit 98865bb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pylabrobot/heating_shaking/hamilton.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,11 @@ def serialize(self) -> dict:
5454

5555
async def _send_command(self, command: str, **kwargs):
5656
assert len(command) == 2, "Command must be 2 characters long"
57-
args = "".join([f"{key}{value}" for key, value in kwargs.items()])
5857

59-
# Run blocking I/O in a separate thread
58+
args = "".join([f"{key}{value}" for key, value in kwargs.items()])
6059
await asyncio.to_thread(self.io.write, f"T{self.shaker_index}{command}id{str(self.command_id).zfill(4)}{args}".encode())
6160

6261
self.command_id = (self.command_id + 1) % 10_000
63-
64-
# Read response asynchronously
6562
response = await asyncio.to_thread(self.io.read)
6663
return response
6764

0 commit comments

Comments
 (0)