Skip to content

Commit

Permalink
slots slots slots slotsslotsslots
Browse files Browse the repository at this point in the history
everybooody
  • Loading branch information
SyntaxColoring committed Oct 11, 2023
1 parent 56f3b89 commit 18bb36f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions api/src/opentrons/protocol_api/core/engine/stringify.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def _labware_location_string(
engine_client: SyncClient, location: LabwareLocation
) -> str:
if isinstance(location, DeckSlotLocation):
# Returning just the ID, like "5" or "C2", matches historical behavior.
# TODO(mm, 2023-10-11):
# Ideally, we might want to use the display name specified by the deck definition?
return location.slotName.id
return f"slot {location.slotName.id}"

elif isinstance(location, ModuleLocation):
module_name = engine_client.state.modules.get_definition(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ def test_well_on_labware_with_complicated_location(decoy: Decoy) -> None:
)
assert (
result
== "well-name of lw-1-display-name on lw-2-display-name on module-display-name on C2"
== "well-name of lw-1-display-name on lw-2-display-name on module-display-name on slot C2"
)
8 changes: 4 additions & 4 deletions api/tests/opentrons/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ async def dummy_delay(self: Any, duration_s: float) -> None:
(
"testosaur_v2_14.py",
[
"Picking up tip from A1 of Opentrons 96 Tip Rack 1000 µL on 1",
"Aspirating 100.0 uL from A1 of Corning 96 Well Plate 360 µL Flat on 2 at 500.0 uL/sec",
"Dispensing 100.0 uL into B1 of Corning 96 Well Plate 360 µL Flat on 2 at 1000.0 uL/sec",
"Dropping tip into H12 of Opentrons 96 Tip Rack 1000 µL on 1",
"Picking up tip from A1 of Opentrons 96 Tip Rack 1000 µL on slot 1",
"Aspirating 100.0 uL from A1 of Corning 96 Well Plate 360 µL Flat on slot 2 at 500.0 uL/sec",
"Dispensing 100.0 uL into B1 of Corning 96 Well Plate 360 µL Flat on slot 2 at 1000.0 uL/sec",
"Dropping tip into H12 of Opentrons 96 Tip Rack 1000 µL on slot 1",
],
),
],
Expand Down
8 changes: 4 additions & 4 deletions api/tests/opentrons/test_simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ def test_simulate_without_filename(protocol: Protocol, protocol_file: str) -> No
(
"testosaur_v2_14.py",
[
"Picking up tip from A1 of Opentrons 96 Tip Rack 1000 µL on 1",
"Aspirating 100.0 uL from A1 of Corning 96 Well Plate 360 µL Flat on 2 at 500.0 uL/sec",
"Dispensing 100.0 uL into B1 of Corning 96 Well Plate 360 µL Flat on 2 at 1000.0 uL/sec",
"Dropping tip into H12 of Opentrons 96 Tip Rack 1000 µL on 1",
"Picking up tip from A1 of Opentrons 96 Tip Rack 1000 µL on slot 1",
"Aspirating 100.0 uL from A1 of Corning 96 Well Plate 360 µL Flat on slot 2 at 500.0 uL/sec",
"Dispensing 100.0 uL into B1 of Corning 96 Well Plate 360 µL Flat on slot 2 at 1000.0 uL/sec",
"Dropping tip into H12 of Opentrons 96 Tip Rack 1000 µL on slot 1",
],
),
],
Expand Down

0 comments on commit 18bb36f

Please sign in to comment.