diff --git a/protocols/6d901d-2/6d901d-2.ot2.apiv2.py b/protocols/6d901d-2/6d901d-2.ot2.apiv2.py index d61152cc8..7d42eeae1 100644 --- a/protocols/6d901d-2/6d901d-2.ot2.apiv2.py +++ b/protocols/6d901d-2/6d901d-2.ot2.apiv2.py @@ -1,5 +1,6 @@ from opentrons import protocol_api from opentrons.protocol_api.labware import OutOfTipsError +from opentrons.types import Mount metadata = { @@ -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 diff --git a/protocols/6d901d/6d901d.ot2.apiv2.py b/protocols/6d901d/6d901d.ot2.apiv2.py index 626f5c1ec..753ae3668 100644 --- a/protocols/6d901d/6d901d.ot2.apiv2.py +++ b/protocols/6d901d/6d901d.ot2.apiv2.py @@ -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 \ @@ -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