7
7
8
8
from pydantic import BaseModel , Field
9
9
10
- from automation .resources .robot_data import module_types
11
-
12
10
GENERATED_PROTOCOLS_FOLDER = "generated_protocols"
13
11
OVERRIDE_MONIKER = "_Override_"
14
12
@@ -19,16 +17,7 @@ class Protocol(BaseModel):
19
17
file_stem : str = Field (description = "file name not including extension" )
20
18
file_extension : Literal ["json" , "py" ] = Field (description = "file extension of the protocol" )
21
19
robot : Literal ["OT2" , "Flex" ] = Field (description = "the robot type which will appear in the robot field in the app" )
22
- app_error : bool = Field (description = "will analysis with the app raise an error" )
23
- robot_error : bool = Field (description = "will analysis with the robot raise an error" )
24
- app_analysis_error : Optional [str ] = Field (description = "the exact error shown in the app popout" , default = None )
25
- robot_analysis_error : Optional [str ] = Field (description = "the exact analysis error from the robot" , default = None )
26
20
custom_labware : Optional [list [str ]] = Field (description = "list of custom labware file stems" , default = None )
27
- instruments : Optional [list [str ]] = Field (description = "list of instruments that will show in the app" , default = None )
28
- modules : Optional [list [module_types ]] = Field (description = "list of modules that will show in the app" , default = None )
29
- description : Optional [str ] = Field (description = "Details about this protocol" , default = None )
30
- expected_test_failure : bool = Field (description = "Is this test expected to fail" , default = False )
31
- expected_test_reason : Optional [str ] = Field (description = "Reason test is failing" , default = None )
32
21
override_variable_name : Optional [str ] = Field (description = "The variable name to override" , default = None )
33
22
override_value : Optional [str ] = Field (description = "The value of the override" , default = None )
34
23
from_override : bool = Field (description = "Is this protocol generated from an override" , default = False )
0 commit comments