Skip to content

Commit

Permalink
chore(gcode): reduce time of gcode-testing (#8683)
Browse files Browse the repository at this point in the history
* faster g-code-tests in ci

* reduce hold time.

* use dev folder in s3
  • Loading branch information
amitlissack authored Nov 9, 2021
1 parent c58e5eb commit 1f06b75
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion g-code-testing/g_code_test_data/http/http_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
)


S3_BASE: Final = "http"
S3_BASE: Final = "dev/http"
"""Base of files in s3"""
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@
smoothie=SmoothieSettings(
left=PipetteSettings(model="p20_single_v2.0", id="P20SV202020070101"),
right=PipetteSettings(model="p300_multi_v2.1", id="P20SV202020070101"),
)
),
)

# Set up the temperature ramp.
SWIFT_SMOOTHIE_SETTINGS.thermocycler.lid_temperature.degrees_per_tick = 50
SWIFT_SMOOTHIE_SETTINGS.thermocycler.plate_temperature.degrees_per_tick = 50
SWIFT_SMOOTHIE_SETTINGS.tempdeck.temperature.degrees_per_tick = 50


S3_BASE: Final = "protocol"
S3_BASE: Final = "dev/protocol"
"""Base path of files in s3."""

##################
Expand Down Expand Up @@ -59,7 +64,7 @@
smoothie=SmoothieSettings(
left=PipetteSettings(model="p300_single_v2.1", id="P20SV202020070101"),
right=PipetteSettings(model="p20_multi_v2.1", id="P20SV202020070101"),
)
),
)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def run(ctx):

# Magnetic Module Testing
magdeck.engage(height=10)
ctx.delay(seconds=30)
ctx.delay(seconds=1)
magdeck.disengage()
ctx.comment(f"mag status {magdeck.status}")
magdeck.engage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ def run(protocol_context):
# Run Enzymatic Prep Profile
thermocycler.close_lid()
thermocycler.set_block_temperature(70)
thermocycler.set_block_temperature(32, hold_time_minutes=1)
thermocycler.set_block_temperature(64.5, hold_time_minutes=1)
# Changed from hold_time_minutes to hold_time_seconds for faster running in CI
thermocycler.set_block_temperature(32, hold_time_seconds=1)
thermocycler.set_block_temperature(64.5, hold_time_seconds=1)
thermocycler.set_block_temperature(4)
thermocycler.deactivate_lid()
thermocycler.open_lid()
Expand Down Expand Up @@ -271,10 +272,10 @@ def run(protocol_context):

COVER_TEMP = 105
PLATE_TEMP_PRE = 4
PLATE_TEMP_HOLD_1 = (97, 5) # 30)
PLATE_TEMP_HOLD_2 = (97, 5) # 10)
PLATE_TEMP_HOLD_3 = (59.5, 5) # 30)
PLATE_TEMP_HOLD_4 = (67.3, 5) # 30)
PLATE_TEMP_HOLD_1 = (97, 1) # 30)
PLATE_TEMP_HOLD_2 = (97, 1) # 10)
PLATE_TEMP_HOLD_3 = (59.5, 1) # 30)
PLATE_TEMP_HOLD_4 = (67.3, 1) # 30)
# PLATE_TEMP_HOLD_5 = (72, 300)
PLATE_TEMP_POST = 4
NUM_CYCLES = 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ def run(protocol_context):
# Run Enzymatic Prep Profile
thermocycler.close_lid()
thermocycler.set_lid_temperature(70)
thermocycler.set_block_temperature(32, hold_time_minutes=1)
thermocycler.set_block_temperature(64.5, hold_time_minutes=1)
# Changed from hold_time_minutes to hold_time_seconds for faster running in CI
thermocycler.set_block_temperature(32, hold_time_seconds=1)
thermocycler.set_block_temperature(64.5, hold_time_seconds=1)
thermocycler.set_block_temperature(4)
thermocycler.deactivate_lid()
thermocycler.open_lid()
Expand All @@ -110,7 +111,8 @@ def run(protocol_context):
p20.blow_out(well.top(-7))
p20.drop_tip()

thermocycler.set_block_temperature(20.2, hold_time_minutes=2)
# Changed from hold_time_minutes to hold_time_seconds for faster running in CI
thermocycler.set_block_temperature(20.2, hold_time_seconds=1)
thermocycler.set_block_temperature(4)

"""Ligation Purification"""
Expand Down Expand Up @@ -272,10 +274,10 @@ def run(protocol_context):

COVER_TEMP = 105
PLATE_TEMP_PRE = 4
PLATE_TEMP_HOLD_1 = (97, 2) # 30)
PLATE_TEMP_HOLD_2 = (97, 2) # 10)
PLATE_TEMP_HOLD_3 = (59.5, 2) # 30)
PLATE_TEMP_HOLD_4 = (67.3, 2) # 30)
PLATE_TEMP_HOLD_1 = (97, 1) # 30)
PLATE_TEMP_HOLD_2 = (97, 1) # 10)
PLATE_TEMP_HOLD_3 = (59.5, 1) # 30)
PLATE_TEMP_HOLD_4 = (67.3, 1) # 30)
# PLATE_TEMP_HOLD_5 = (72, 300)
PLATE_TEMP_POST = 4
NUM_CYCLES = 5
Expand Down

0 comments on commit 1f06b75

Please sign in to comment.