Skip to content

Commit 6b63aae

Browse files
committed
fix load-file ingredients type
1 parent 1f240e0 commit 6b63aae

7 files changed

+18
-17
lines changed

protocol-designer/fixtures/protocol/8/doItAllV3MigratedToV8.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"ingredients": {
3535
"0": {
3636
"displayName": "Water",
37+
"displayColor": "#b925ff",
3738
"description": null,
38-
"liquidGroupId": "0",
3939
"pythonName": "liquid_1",
40-
"displayColor": "#b925ff"
40+
"liquidGroupId": "0"
4141
}
4242
},
4343
"ingredLocations": {

protocol-designer/fixtures/protocol/8/doItAllV4MigratedToV8.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"ingredients": {
3535
"0": {
3636
"displayName": "Water",
37+
"displayColor": "#b925ff",
3738
"description": null,
38-
"liquidGroupId": "0",
3939
"pythonName": "liquid_1",
40-
"displayColor": "#b925ff"
40+
"liquidGroupId": "0"
4141
}
4242
},
4343
"ingredLocations": {

protocol-designer/fixtures/protocol/8/doItAllV7MigratedToV8.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@
3737
"ingredients": {
3838
"0": {
3939
"displayName": "Water",
40+
"displayColor": "#b925ff",
4041
"description": null,
41-
"liquidGroupId": "0",
4242
"pythonName": "liquid_1",
43-
"displayColor": "#b925ff"
43+
"liquidGroupId": "0"
4444
},
4545
"1": {
4646
"displayName": "Samples",
47+
"displayColor": "#ffd600",
4748
"description": null,
48-
"liquidGroupId": "1",
4949
"pythonName": "liquid_2",
50-
"displayColor": "#ffd600"
50+
"liquidGroupId": "1"
5151
}
5252
},
5353
"ingredLocations": {

protocol-designer/fixtures/protocol/8/doItAllV8.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
},
3434
"ingredients": {
3535
"0": {
36-
"displayName": "",
36+
"displayName": "h20",
3737
"description": null,
3838
"liquidGroupId": "0",
3939
"pythonName": "liquid_1",
4040
"displayColor": "#b925ff"
4141
},
4242
"1": {
43-
"displayName": "",
43+
"displayName": "sample",
4444
"description": null,
4545
"liquidGroupId": "1",
4646
"pythonName": "liquid_2",

protocol-designer/fixtures/protocol/8/example_1_1_0MigratedToV8.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@
3838
"0": {
3939
"displayName": "samples",
4040
"description": null,
41-
"liquidGroupId": "0",
41+
"displayColor": "#b925ff",
4242
"pythonName": "liquid_1",
43-
"displayColor": "#b925ff"
43+
"liquidGroupId": "0"
4444
},
4545
"1": {
4646
"displayName": "dna",
4747
"description": null,
48-
"liquidGroupId": "1",
4948
"pythonName": "liquid_2",
50-
"displayColor": "#ffd600"
49+
"displayColor": "#ffd600",
50+
"liquidGroupId": "1"
5151
}
5252
},
5353
"ingredLocations": {

protocol-designer/fixtures/protocol/8/thermocyclerOnOt2V7MigratedToV8.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"ingredients": {
3535
"0": {
3636
"displayName": "123",
37+
"displayColor": "#b925ff",
3738
"description": null,
38-
"liquidGroupId": "0",
3939
"pythonName": "liquid_1",
40-
"displayColor": "#b925ff"
40+
"liquidGroupId": "0"
4141
}
4242
},
4343
"ingredLocations": {

protocol-designer/src/file-types.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import type { ProtocolFile as ProtocolFileV3 } from '@opentrons/shared-data/prot
55
import type { ProtocolFile as ProtocolFileV4 } from '@opentrons/shared-data/protocol/types/schemaV4'
66
import type { ProtocolFile as ProtocolFileV5 } from '@opentrons/shared-data/protocol/types/schemaV5'
77
import type { ProtocolFile as ProtocolFileV6 } from '@opentrons/shared-data/protocol/types/schemaV6'
8+
import { LiquidEntities } from '@opentrons/step-generation'
89

910
export interface PDMetadata {
1011
// pipetteId to tiprackModel
1112
pipetteTiprackAssignments: Record<string, string[]>
1213
dismissedWarnings: DismissRoot['dismissedWarnings']
13-
ingredients: IngredRoot['ingredients']
14+
ingredients: LiquidEntities
1415
ingredLocations: IngredRoot['ingredLocations']
1516
savedStepForms: StepformRoot['savedStepForms']
1617
orderedStepIds: StepformRoot['orderedStepIds']

0 commit comments

Comments
 (0)