Skip to content

Commit

Permalink
fixup cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Dec 20, 2024
1 parent fe0fc7d commit 27b24e2
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ async def test_pressure_disable(
mock_check_overpressure: None,
pipette_has_sensor: bool,
) -> None:
config = {"run.side_effect": move_group_run_side_effect(controller, axes)}
config = {"run.side_effect": move_group_run_side_effect_home(controller, axes)}
with mock.patch( # type: ignore [call-overload]
"opentrons.hardware_control.backends.ot3controller.MoveGroupRunner",
spec=MoveGroupRunner,
Expand Down
6 changes: 0 additions & 6 deletions api/tests/opentrons/protocol_engine/state/test_tip_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@
_tip_rack_parameters = LabwareParameters.model_construct(isTiprack=True) # type: ignore[call-arg]


@pytest.fixture
def available_sensors() -> AvailableSensorDefinition:
"""Provide a list of sensors."""
return AvailableSensorDefinition(sensors=["pressure", "capacitive", "environment"])


@pytest.fixture
def available_sensors() -> AvailableSensorDefinition:
"""Provide a list of sensors."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
PipetteGenerationType.FLEX: {
PipetteChannelType.SINGLE_CHANNEL: RobotMountConfigs(2133.33, 230.15, 80),
PipetteChannelType.EIGHT_CHANNEL: RobotMountConfigs(2133.33, 230.15, 80),
PipetteChannelType.EIGHT_CHANNEL_EM: RobotMountConfigs(2133.33, 230.15, 80),
PipetteChannelType.NINETY_SIX_CHANNEL: RobotMountConfigs(2133.33, 230.15, 80),
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ def channels_from_string(channels: str) -> PipetteChannelType:
if channels == "96":
return PipetteChannelType.NINETY_SIX_CHANNEL
elif "multi" in channels:
if "em" in channels:
return PipetteChannelType.EIGHT_CHANNEL_EM
return PipetteChannelType.EIGHT_CHANNEL
elif channels == "single":
return PipetteChannelType.SINGLE_CHANNEL
Expand Down
3 changes: 0 additions & 3 deletions shared-data/python/opentrons_shared_data/pipette/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@ def check_and_return_type(
class PipetteChannelType(int, enum.Enum):
SINGLE_CHANNEL = 1
EIGHT_CHANNEL = 8
EIGHT_CHANNEL_EM = 82
NINETY_SIX_CHANNEL = 96

def __str__(self) -> str:
if self.value == 96:
return "96"
elif self.value == 8:
return "multi"
elif self.value == 82:
return "multi_em"
else:
return "single"

Expand Down
1 change: 1 addition & 0 deletions shared-data/python/tests/pipette/test_validate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def test_serializer() -> None:
types.PipetteModelType.p1000,
types.PipetteChannelType.NINETY_SIX_CHANNEL,
types.PipetteVersionType(3, 3),
types.PipetteOEMType.OT,
)
quirk_0 = types.Quirks.pickupTipShake
quirk_1 = types.Quirks.dropTipShake
Expand Down

0 comments on commit 27b24e2

Please sign in to comment.