Skip to content

Commit

Permalink
fix style for new ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
amitschang committed Feb 5, 2025
1 parent c78de65 commit 6d51b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evolver/hardware/standard/pump.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def commit(self):
hz_a = [float(input.volume)] * 3
for solenoid, hz in enumerate(hz_a):
# solenoid is 1-indexed on hardware
cmd[pump * 3 + solenoid] = f"{hz}|{pump}|{solenoid+1}"
cmd[pump * 3 + solenoid] = f"{hz}|{pump}|{solenoid + 1}"
elif any(pump - i < 3 for i in self.ipp_pumps):
raise ValueError(f"pump slot {pump} reserved for IPP pump, cannot address as standard")
else:
Expand All @@ -99,7 +99,7 @@ def off(self):
cmd = [b"0"] * self.slots
for pump in self.ipp_pumps:
for solenoid in range(3):
cmd[pump * 3 + solenoid] = f"0|{pump}|{solenoid+1}".encode()
cmd[pump * 3 + solenoid] = f"0|{pump}|{solenoid + 1}".encode()
with self.serial as comm:
comm.communicate(SerialData(addr=self.addr, data=cmd))

Expand Down

0 comments on commit 6d51b9a

Please sign in to comment.