1
- """DVT Flex Stacker QC."""
2
- from opentrons .protocol_api import ProtocolContext
1
+ """PVT Flex Stacker QC."""
2
+ from opentrons .protocol_api import ProtocolContext , ParameterContext
3
3
from opentrons .protocol_api .module_contexts import (
4
4
FlexStackerContext ,
5
5
)
6
6
7
7
metadata = {
8
- "protocolName" : "Flex Stacker DVT QC" ,
8
+ "protocolName" : "Flex Stacker PVT QC" ,
9
9
"author" :
"Opentrons <[email protected] >" ,
10
10
}
11
11
requirements = {
14
14
}
15
15
16
16
17
+ def add_parameters (parameters : ParameterContext ) -> None :
18
+ """Add parameters to the protocol."""
19
+ parameters .add_str (
20
+ variable_name = "stacker_slot" ,
21
+ display_name = "Flex Stacker Slot" ,
22
+ description = "The slot where the Flex Stacker is loaded." ,
23
+ default = "D4" ,
24
+ choices = [
25
+ {"display_name" : "A4" , "value" : "A4" },
26
+ {"display_name" : "B4" , "value" : "B4" },
27
+ {"display_name" : "C4" , "value" : "C4" },
28
+ {"display_name" : "D4" , "value" : "D4" },
29
+ ],
30
+ )
31
+
32
+
17
33
def run (protocol : ProtocolContext ) -> None :
18
34
"""Protocol."""
19
35
# ======================= SIMPLE SETUP ARRANGEMENT ======================
20
36
# STACKERS
21
37
stacker : FlexStackerContext = protocol .load_module (
22
- "flexStackerModuleV1" , "D4"
38
+ "flexStackerModuleV1" ,
39
+ protocol .params .stacker_slot , # type: ignore[attr-defined]
23
40
) # type: ignore[assignment]
24
41
stacker .set_stored_labware (
25
42
load_name = "opentrons_flex_96_tiprack_200ul" ,
@@ -42,12 +59,11 @@ def run(protocol: ProtocolContext) -> None:
42
59
43
60
# =================== FILL TIPRACKS WITH PCR PLATES ======================
44
61
45
- stacker .empty ("Emptying all labware from the Flex Stacker " )
62
+ stacker .empty ("Empty all tipracks from the hopper and load in 6 PCR plates. " )
46
63
stacker .set_stored_labware (
47
- load_name = "opentrons_96_wellplate_100ul_pcr_full_skirt " ,
64
+ load_name = "opentrons_96_wellplate_200ul_pcr_full_skirt " ,
48
65
count = 6 ,
49
66
)
50
- stacker .fill (message = "Fill stacker with pcr plates" )
51
67
52
68
# ======================= RETRIEVE/STORE PCR PLATES ======================
53
69
plates = []
0 commit comments