Skip to content

Commit

Permalink
pb
Browse files Browse the repository at this point in the history
  • Loading branch information
“ramifarawi” committed Feb 21, 2024
1 parent 236cd6a commit 2411deb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
19 changes: 14 additions & 5 deletions protocols/6d901d-2/6d901d-2.ot2.apiv2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from opentrons import protocol_api
from opentrons.protocol_api.labware import OutOfTipsError
from opentrons.types import Mount


metadata = {
Expand Down Expand Up @@ -83,11 +84,19 @@ def run(ctx: protocol_api.ProtocolContext):
# load pipette
pip = ctx.load_instrument(pipette_type, pipette_mount, tip_racks=tipracks)

if 'p20' in pipette_type:
pick_up_current = 0.15
ctx._hw_manager.hardware._attached_instruments[
pip._implementation.get_mount()].update_config_item(
'pick_up_current', pick_up_current)
if not ctx.is_simulating():
pick_up_current = 0.1 # 100 mA for single tip
# Uncomment the next two lines if using Opentrons Robot Software version 7.1.x. # noqa: E501
# Comment them if NOT using 7.1.x

ctx._hw_manager.hardware.get_pipette(Mount.string_to_mount(pip.mount)).update_config_item( # noqa: E501
{'pick_up_current': {8: pick_up_current}})

# Uncomment the next two lines if using Opentrons Robot Software version 7.2.x # noqa: E501
# Comment them if NOT using 7.2.x

# ctx._hw_manager.hardware.get_pipette(Mount.string_to_mount(pip.mount)).update_config_item(
# {'pick_up_current': pick_up_current})

# Tip_map has the columns reversed, pipette always picks up the
# bottom-most tip in a given column until the column is depleted, and then
Expand Down
21 changes: 14 additions & 7 deletions protocols/6d901d/6d901d.ot2.apiv2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from opentrons import protocol_api
from opentrons import types
from opentrons.types import Mount

metadata = {
'protocolName': 'Normalization with a multi-channel pipette \
Expand Down Expand Up @@ -70,12 +70,19 @@ def run(ctx: protocol_api.ProtocolContext):
m300 = ctx.load_instrument('p300_multi_gen2', p300_mount)
m20 = ctx.load_instrument('p20_multi_gen2', p20_mount)

mounted_on = {"left": types.Mount.LEFT, "right": types.Mount.RIGHT}

pick_up_current = 0.15 # 150 mA for single tip
ctx._hw_manager.hardware._attached_instruments[
mounted_on[m20.mount]].update_config_item(
'pick_up_current', pick_up_current)
if not ctx.is_simulating():
pick_up_current = 0.1 # 100 mA for single tip
# Uncomment the next two lines if using Opentrons Robot Software version 7.1.x. # noqa:E501
# Comment them if NOT using 7.1.x
for pipette in [m20, m300]:
ctx._hw_manager.hardware.get_pipette(Mount.string_to_mount(pipette.mount)).update_config_item( # noqa:E501
{'pick_up_current': {8: pick_up_current}})

# Uncomment the next two lines if using Opentrons Robot Software version 7.2.x # noqa:E501
# Comment them if NOT using 7.2.x
# for pipette in [m20, m300]:
# ctx._hw_manager.hardware.get_pipette(Mount.string_to_mount(pipette.mount)).update_config_item(
# {'pick_up_current': pick_up_current})

tip300ctr = 95
tip20ctr = 95
Expand Down

0 comments on commit 2411deb

Please sign in to comment.