Skip to content

Commit 4fc3048

Browse files
committed
add a fixture to annotated steps
1 parent a71d860 commit 4fc3048

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

api/src/opentrons/protocol_reader/file_identifier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,3 @@ def _analyze_python_protocol(
292292
api_level=parsed.api_level,
293293
command_annotations=[],
294294
)
295-

app/src/organisms/ProtocolDetails/AnnotatedSteps.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import type {
2121
ProtocolAnalysisOutput,
2222
RunTimeCommand,
2323
} from '@opentrons/shared-data'
24+
import { CommandAnnotation } from '@opentrons/shared-data/commandAnnotation/types'
2425

2526
interface AnnotatedStepsProps {
2627
analysis: CompletedProtocolAnalysis | ProtocolAnalysisOutput
@@ -45,8 +46,8 @@ export function AnnotatedSteps(props: AnnotatedStepsProps): JSX.Element {
4546
}
4647
`
4748

48-
// test with doitAllV8
49-
const annotations = analysis.commandAnnotations ?? [
49+
// TODO(ja, 7/23/24): remove stub
50+
const FIXTURE_FOR_DO_IT_ALL_V8: CommandAnnotation[] = [
5051
{
5152
annotationType: 'secondOrderCommand',
5253
machineReadableName: 'pipettes and module load commands',
@@ -59,6 +60,9 @@ export function AnnotatedSteps(props: AnnotatedStepsProps): JSX.Element {
5960
},
6061
]
6162

63+
// test with doitAllV8
64+
const annotations = analysis.commandAnnotations ?? FIXTURE_FOR_DO_IT_ALL_V8
65+
6266
const groupedCommands = analysis.commands.reduce<
6367
Array<LeafNode | ParentNode>
6468
>((acc, c, i) => {

0 commit comments

Comments
 (0)