Skip to content

Commit

Permalink
Global search and replace.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Sep 11, 2023
1 parent d1e04b2 commit a59fa7e
Show file tree
Hide file tree
Showing 23 changed files with 44 additions and 35 deletions.
4 changes: 2 additions & 2 deletions api-client/src/pipettes/__fixtures__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const pipetteSettingsResponseFixture = {
export const pipetteDataLeftFixture = {
data: { channels: 1, min_volume: 1, max_volume: 50 },
instrumentModel: 'p1000_single_v3.0',
instrumentName: 'p1000_single_gen3',
instrumentName: 'flex_1channel_1000',
instrumentType: 'pipette',
mount: 'left',
serialNumber: 'abc',
Expand All @@ -267,7 +267,7 @@ export const pipetteDataLeftFixture = {
export const pipetteResponseRightFixture = {
data: { channels: 1, min_volume: 1, max_volume: 50 },
instrumentModel: 'p1000_single_v3.0',
instrumentName: 'p1000_single_gen3',
instrumentName: 'flex_1channel_1000',
instrumentType: 'pipette',
mount: 'right',
serialNumber: 'cba',
Expand Down
6 changes: 3 additions & 3 deletions api/tests/opentrons/hardware_control/test_instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def dummy_instruments_attached_ot3():
types.Mount.LEFT: {
"model": "p1000_single_v3.3",
"id": "testy",
"name": "p1000_single_gen3",
"name": "flex_1channel_1000",
},
types.Mount.RIGHT: {"model": None, "id": None, "name": None},
OT3Mount.GRIPPER: None,
Expand Down Expand Up @@ -680,12 +680,12 @@ async def test_reset_instruments(monkeypatch, sim_and_instr):
types.Mount.LEFT: {
"model": "p1000_single_v3.3",
"id": "testy",
"name": "p1000_single_gen3",
"name": "flex_1channel_1000",
},
types.Mount.RIGHT: {
"model": "p1000_single_v3.3",
"id": "testy",
"name": "p1000_single_gen3",
"name": "flex_1channel_1000",
},
}
sim_builder, _ = sim_and_instr
Expand Down
2 changes: 1 addition & 1 deletion api/tests/opentrons/protocol_api_old/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def test_instrument_trash_ot3(ctx, get_labware_def):
ctx.home()

mount = Mount.LEFT
instr = ctx.load_instrument("p1000_single_gen3", mount)
instr = ctx.load_instrument("flex_1channel_1000", mount)

assert instr.trash_container.name == "opentrons_1_trash_3200ml_fixed"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def run(protocol: protocol_api.ProtocolContext):
EPM = reagent_plate.wells_by_name()["A7"]

# pipette
p1000 = protocol.load_instrument("p1000_multi_gen3", "left", tip_racks=[tiprack_200_1, tiprack_200_2])
p50 = protocol.load_instrument("p50_multi_gen3", "right", tip_racks=[tiprack_20])
p1000 = protocol.load_instrument("flex_8channel_1000", "left", tip_racks=[tiprack_200_1, tiprack_200_2])
p50 = protocol.load_instrument("flex_8channel_50", "right", tip_racks=[tiprack_20])

# tip and sample tracking
sample_well = "A3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def run(protocol: protocol_api.ProtocolContext):

# pipette
p1000 = protocol.load_instrument(
"p1000_multi_gen3", "left", tip_racks=[tiprack_200_1, tiprack_200_2, tiprack_200_3]
"flex_8channel_1000", "left", tip_racks=[tiprack_200_1, tiprack_200_2, tiprack_200_3]
)
p50 = protocol.load_instrument("p50_multi_gen3", "right", tip_racks=[tiprack_50_1, tiprack_50_2])
p50 = protocol.load_instrument("flex_8channel_50", "right", tip_racks=[tiprack_50_1, tiprack_50_2])

# tip and sample tracking
if COLUMNS == 1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def run(protocol: protocol_api.ProtocolContext):
Barcodes3 = reagent_plate.wells_by_name()["A9"]

# pipette
p1000 = protocol.load_instrument("p1000_multi_gen3", "right", tip_racks=[tiprack_200_1, tiprack_200_2])
p50 = protocol.load_instrument("p50_multi_gen3", "left", tip_racks=[tiprack_20])
p1000 = protocol.load_instrument("flex_8channel_1000", "right", tip_racks=[tiprack_200_1, tiprack_200_2])
p50 = protocol.load_instrument("flex_8channel_50", "left", tip_racks=[tiprack_20])

# tip and sample tracking
if COLUMNS == 3:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def run(protocol: protocol_api.ProtocolContext):

# pipette
p1000 = protocol.load_instrument(
"p1000_single_gen3",
"flex_1channel_1000",
"right",
tip_racks=[tiprack_200_1, tiprack_200_2, tiprack_200_3, tiprack_200_4, tiprack_200_5, tiprack_200_6],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def run(protocol: protocol_api.ProtocolContext):

# pipette
if USE_8xMULTI == "YES":
p1000 = protocol.load_instrument("p1000_multi_gen3", "right")
p1000 = protocol.load_instrument("flex_1channel_1000", "right")
else:
p1000 = protocol.load_instrument("p1000_96", "left")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def run(protocol: protocol_api.ProtocolContext):
DIL = reservoir["A5"]

# pipette
p50 = protocol.load_instrument("p50_multi_gen3", "left", tip_racks=[tiprack_50_1, tiprack_50_2])
p1000 = protocol.load_instrument("p1000_multi_gen3", "right", tip_racks=[tiprack_200_1])
p50 = protocol.load_instrument("flex_8channel_50", "left", tip_racks=[tiprack_50_1, tiprack_50_2])
p1000 = protocol.load_instrument("flex_8channel_1000", "right", tip_racks=[tiprack_200_1])

# samples
src_file_path = inspect.getfile(lambda: None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p1000_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_1000", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p1000_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_1000", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p1000_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_1000", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p1000_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_1000", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p1000_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_1000", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p1000_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_1000", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p1000_single_gen3", "left")
pipette = ctx.load_instrument("flex_1channel_1000", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p50_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_50", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(pipette.min_volume, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p50_multi_gen3", "left")
pipette = ctx.load_instrument("flex_8channel_50", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(pipette.min_volume, vial["A1"].top())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def run(ctx: ProtocolContext) -> None:
for slot in slots
]
vial = ctx.load_labware(LABWARE_ON_SCALE, SLOT_SCALE)
pipette = ctx.load_instrument("p50_single_gen3", "left")
pipette = ctx.load_instrument("flex_1channel_50", "left")
for rack in tipracks:
pipette.pick_up_tip(rack["A1"])
pipette.aspirate(10, vial["A1"].top())
Expand Down
16 changes: 12 additions & 4 deletions hardware-testing/tests/hardware_testing/liquid/test_heights.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,12 @@ def test_before_and_after_heights() -> None:
# the Corning plate assumes a perfect cylinder without a lookup table
tiprack, trough, plate, _ = _load_labware(ctx)
# load a pipette
single = ctx.load_instrument("p1000_single_gen3", mount="left", tip_racks=[tiprack])
multi = ctx.load_instrument("p1000_multi_gen3", mount="right", tip_racks=[tiprack])
single = ctx.load_instrument(
"flex_1channel_1000", mount="left", tip_racks=[tiprack]
)
multi = ctx.load_instrument(
"flex_8channel_1000", mount="right", tip_racks=[tiprack]
)
# initialize liquid tracker
tracker = LiquidTracker()
initialize_liquid_from_deck(ctx, tracker)
Expand Down Expand Up @@ -250,8 +254,12 @@ def test_update_affected_wells() -> None:
# the Corning plate assumes a perfect cylinder without a lookup table
tiprack, trough, plate, _ = _load_labware(ctx)
# load a pipette
single = ctx.load_instrument("p1000_single_gen3", mount="left", tip_racks=[tiprack])
multi = ctx.load_instrument("p1000_multi_gen3", mount="right", tip_racks=[tiprack])
single = ctx.load_instrument(
"flex_1channel_1000", mount="left", tip_racks=[tiprack]
)
multi = ctx.load_instrument(
"flex_8channel_1000", mount="right", tip_racks=[tiprack]
)
# initialize liquid tracker
tracker = LiquidTracker()
initialize_liquid_from_deck(ctx, tracker)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const mockWizardTileProps: Partial<WizardTileProps> = {
robotType: FLEX_ROBOT_TYPE,
},
pipettesByMount: {
left: { pipetteName: 'p1000_single_gen3', tiprackDefURI: 'mocktip' },
left: { pipetteName: 'flex_1channel_1000', tiprackDefURI: 'mocktip' },
right: { pipetteName: null, tiprackDefURI: null },
} as FormPipettesByMount,
modulesByType: {
Expand Down
4 changes: 2 additions & 2 deletions robot-server/simulators/test-flex.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"model": "p1000_single_3.4",
"id": "321",
"max_volume": 1000,
"name": "p1000_single_gen3",
"name": "flex_1channel_1000",
"tip_length": 0,
"channels": 1
},
"left": {
"model": "p50_single_3.4",
"id": "123",
"max_volume": 50,
"name": "p50_single_gen3",
"name": "flex_1channel_50",
"tip_length": 0,
"channels": 1
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ def run(protocol: ProtocolContext) -> None:
tiprack_1 = protocol.load_labware("opentrons_flex_96_tiprack_50ul", "D2")
p50 = protocol.load_instrument("flex_1channel_50", "right", tip_racks=[tiprack_1])

# TODO (spp, 2023-07-13): replace 'p1000_single_gen3' with the newer name once '.._gen3' is discontinued
p1000 = protocol.load_instrument("p1000_single_gen3", "left", tip_racks=[tiprack_1])
p1000 = protocol.load_instrument(
"flex_1channel_1000", "left", tip_racks=[tiprack_1]
)

p50.pick_up_tip()
p50.aspirate(40, plate["A1"])
Expand Down

0 comments on commit a59fa7e

Please sign in to comment.