Skip to content

Commit

Permalink
call module.model inline
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Feb 11, 2025
1 parent e84bed5 commit 9e063ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions protocol-designer/src/file-data/selectors/pythonFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ export function getLoadModules(
const pythonModules = hasModules
? Object.values(moduleEntities)
.map(module => {
// pythonIdentifier from api/src/opentrons/protocol_api/validation.py#L373
const pythonIdentifier = module.model
// pythonIdentifier (module.model) from api/src/opentrons/protocol_api/validation.py#L373
return `${
module.pythonName
} = ${PROTOCOL_CONTEXT_NAME}.load_module(${formatPyStr(
pythonIdentifier
module.model
)}, ${formatPyStr(moduleRobotState[module.id].slot)})`
})
.join('\n')
Expand Down

0 comments on commit 9e063ce

Please sign in to comment.