From 70166b4f174553c10d0cecc79a499eeca934068a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cramifarawi=E2=80=9D?= <“rami.farawi@opentrons.com”> Date: Mon, 20 May 2024 15:10:08 -0400 Subject: [PATCH] fix --- protocols/29225e-part-2/29225e-part-2.ot2.apiv2.py | 13 +++++++++---- protocols/29225e/29225e.ot2.apiv2.py | 5 +++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/protocols/29225e-part-2/29225e-part-2.ot2.apiv2.py b/protocols/29225e-part-2/29225e-part-2.ot2.apiv2.py index b887e9f047..5dc07e19d8 100644 --- a/protocols/29225e-part-2/29225e-part-2.ot2.apiv2.py +++ b/protocols/29225e-part-2/29225e-part-2.ot2.apiv2.py @@ -1,16 +1,19 @@ + + from operator import itemgetter from opentrons.protocol_api.labware import Well, OutOfTipsError # import from python types module from types import MethodType # import types from opentrons module from opentrons import types +from opentrons import APIVersion import math import csv metadata = { 'title': 'qRT-PCR Reaction Setup', 'author': 'Steve Plonk', - 'apiLevel': '2.10' + 'apiLevel': '2.13' } @@ -76,7 +79,7 @@ def run(ctx): class WellH(Well): def __init__(self, well, min_height=5, comp_coeff=1.15, current_volume=0): - super().__init__(well._impl) + super().__init__(well.parent, well._core, APIVersion(2, 13)) self.well = well self.min_height = min_height self.comp_coeff = comp_coeff @@ -292,6 +295,7 @@ def create_chunks(list_name, n): for chunk in create_chunks(current_transfers['vol'], math.floor( tips300[0].wells()[0].max_volume / 20)): asp_vol = sum(chunk) + print(asp_vol) p300s.aspirate(15, mm_source.height_dec(15), rate=0.3) p300s.aspirate( asp_vol, mm_source.height_dec(asp_vol), rate=0.3) @@ -300,7 +304,7 @@ def create_chunks(list_name, n): p300s.touch_tip(mm_source, radius=0.75, v_offset=-2, speed=10) for vol in chunk: d = pcr_plate.wells_by_name()[next(dest)] - p300s.dispense(vol, d.bottom(clearance_pcr), rate=0.3) + p300s.dispense(vol+15, d.bottom(clearance_pcr), rate=0.3) p300s.delay(1) p300s.slow_tip_withdrawal(10, d) try: @@ -333,7 +337,8 @@ def create_chunks(list_name, n): mm_source, radius=0.75, v_offset=-2, speed=10) for vol in chunk: d = pcr_plate.wells_by_name()[next(dest)] - p300s.dispense(vol, d.bottom(clearance_pcr), rate=0.3) + p300s.dispense(vol+15, d.bottom(clearance_pcr), + rate=0.3) p300s.delay(1) p300s.slow_tip_withdrawal(10, d) if p300s.has_tip: diff --git a/protocols/29225e/29225e.ot2.apiv2.py b/protocols/29225e/29225e.ot2.apiv2.py index 14f7eb290c..2c3ea7c932 100644 --- a/protocols/29225e/29225e.ot2.apiv2.py +++ b/protocols/29225e/29225e.ot2.apiv2.py @@ -3,13 +3,14 @@ # import from opentrons.types from opentrons import types from opentrons.protocol_api.labware import Well, OutOfTipsError +from opentrons import APIVersion import csv import math metadata = { 'title': 'RNA Normalization', 'author': 'Steve Plonk', - 'apiLevel': '2.10' + 'apiLevel': '2.13' } @@ -93,7 +94,7 @@ def liq_height(well): class WellH(Well): def __init__(self, well, min_height=5, comp_coeff=1.15, current_volume=0): - super().__init__(well._impl) + super().__init__(well.parent, well._core, APIVersion(2, 13)) self.well = well self.min_height = min_height self.comp_coeff = comp_coeff