Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
“ramifarawi” committed Oct 1, 2024
1 parent 2f447c9 commit 2ddb59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protoBuilds/079db2/079db2.ot2.apiv2.py.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"content": "metadata = {\n 'protocolName': 'Reformatting with Custom Tube Rack',\n 'author': 'Rami Farawi <[email protected]>',\n 'source': 'Custom Protocol Request',\n 'apiLevel': '2.13'\n}\n\n\ndef run(ctx):\n\n [num_samp, volume, p300_mount] = get_values( # noqa: F821\n \"num_samp\", \"volume\", \"p300_mount\")\n\n if not 1 <= num_samp <= 86:\n raise Exception(\"Enter a sample number between 1-86\")\n\n # labware\n\n tuberacks = [ctx.load_labware('custom_24_tuberack', slot)\n for slot in [1, 2, 3, 4]]\n plate = ctx.load_labware('nest_96_wellplate_2ml_deep', 6)\n tips = [ctx.load_labware('opentrons_96_tiprack_300ul', slot)\n for slot in [8]]\n\n # pipettes\n p300 = ctx.load_instrument('p300_single_gen2', p300_mount, tip_racks=tips)\n\n # mapping\n source_wells = [tube for rack in tuberacks\n for row in rack.rows() for tube in row][:num_samp]\n dest_wells = [well for row in plate.rows() for well in row][10:]\n\n # protocol\n ctx.comment('\\n---------------ADDING SAMPLE TO PLATE----------------\\n\\n')\n for s, d in zip(source_wells, dest_wells):\n p300.pick_up_tip()\n p300.aspirate(volume, s)\n p300.dispense(volume, d)\n p300.drop_tip()\n ctx.comment('\\n')\n",
"content": "metadata = {\n 'protocolName': 'Reformatting with Custom Tube Rack',\n 'author': 'Rami Farawi <[email protected]>',\n 'source': 'Custom Protocol Request',\n 'apiLevel': '2.13'\n}\n\n\ndef run(ctx):\n\n [num_samp, volume, p300_mount] = get_values( # noqa: F821\n \"num_samp\", \"volume\", \"p300_mount\")\n\n if not 1 <= num_samp <= 86:\n raise Exception(\"Enter a sample number between 1-86\")\n\n # labware\n\n tuberacks = [ctx.load_labware('custom_24_tuberack', slot)\n for slot in [1, 2, 3, 4]]\n plate = ctx.load_labware('nest_96_wellplate_2ml_deep', 6)\n tips = [ctx.load_labware('opentrons_96_tiprack_300ul', slot)\n for slot in [8]]\n\n # pipettes\n p300 = ctx.load_instrument('p300_single_gen2', p300_mount, tip_racks=tips)\n\n # mapping\n source_wells = [tube for rack in tuberacks\n for row in rack.rows() for tube in row][:num_samp]\n dest_wells = [well for row in plate.rows() for well in row][10:]\n\n # protocol\n ctx.comment('\\n---------------ADDING SAMPLE TO PLATE----------------\\n\\n')\n for s, d in zip(source_wells, dest_wells):\n p300.pick_up_tip()\n p300.aspirate(volume, s.bottom(z=10))\n p300.dispense(volume, d)\n p300.drop_tip()\n ctx.comment('\\n')\n",
"custom_labware_defs": [
{
"brand": {
Expand Down
2 changes: 1 addition & 1 deletion protocols/079db2/079db2.ot2.apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run(ctx):
ctx.comment('\n---------------ADDING SAMPLE TO PLATE----------------\n\n')
for s, d in zip(source_wells, dest_wells):
p300.pick_up_tip()
p300.aspirate(volume, s)
p300.aspirate(volume, s.bottom(z=10))
p300.dispense(volume, d)
p300.drop_tip()
ctx.comment('\n')

0 comments on commit 2ddb59a

Please sign in to comment.