Skip to content

Commit 4f3042b

Browse files
authored
changes names to rear/front for sensor channels (#12492)
1 parent 214f225 commit 4f3042b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: hardware-testing/hardware_testing/opentrons_api/helpers_ot3.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -626,9 +626,9 @@ async def get_capacitance_ot3(
626626
if api.is_simulator:
627627
return 0.0
628628
node_id = sensor_node_for_mount(mount)
629-
if not channel or channel == "primary":
629+
if not channel or channel == "rear":
630630
capacitive = sensor_types.CapacitiveSensor.build(SensorId.S0, node_id)
631-
elif channel == "secondary":
631+
elif channel == "front":
632632
capacitive = sensor_types.CapacitiveSensor.build(SensorId.S1, node_id)
633633
else:
634634
raise ValueError(f"unexpected channel for capacitance sensor: {channel}")
@@ -701,10 +701,9 @@ async def get_pressure_ot3(
701701
if api.is_simulator:
702702
return 0.0
703703
node_id = sensor_node_for_mount(mount)
704-
# FIXME: allow SensorId to specify which sensor on the device to read from
705-
if not channel or channel == "primary":
704+
if not channel or channel == "rear":
706705
pressure = sensor_types.PressureSensor.build(SensorId.S0, node_id)
707-
elif channel == "secondary":
706+
elif channel == "front":
708707
pressure = sensor_types.PressureSensor.build(SensorId.S1, node_id)
709708
else:
710709
raise ValueError(f"unexpected channel for pressure sensor: {channel}")

0 commit comments

Comments
 (0)