|
1 |
| -import { formatPyStr, indentPyLines, uuid } from '../../utils' |
| 1 | +import { formatPyStr, uuid } from '../../utils' |
2 | 2 | import { noTipOnPipette, pipetteDoesNotExist } from '../../errorCreators'
|
3 | 3 | import type { CreateCommand, TouchTipParams } from '@opentrons/shared-data'
|
4 | 4 | import type { CommandCreator, CommandCreatorError } from '../../types'
|
@@ -56,16 +56,14 @@ export const touchTip: CommandCreator<TouchTipAtomicParams> = (
|
56 | 56 | invariantContext.labwareEntities[labwareId].pythonName
|
57 | 57 |
|
58 | 58 | const pythonArgs = [
|
59 |
| - `${labwarePythonName}[${formatPyStr(wellName)}],`, |
60 |
| - `v_offset=${zOffsetFromTop},`, |
61 |
| - ...(speed != null ? [`speed=${speed},`] : []), |
62 |
| - ...(mmFromEdge != null ? [`mm_from_edge=${mmFromEdge},`] : []), |
| 59 | + `${labwarePythonName}[${formatPyStr(wellName)}]`, |
| 60 | + `v_offset=${zOffsetFromTop}`, |
| 61 | + ...(speed != null ? [`speed=${speed}`] : []), |
| 62 | + ...(mmFromEdge != null ? [`mm_from_edge=${mmFromEdge}`] : []), |
63 | 63 | ]
|
64 | 64 |
|
65 | 65 | // TODO: add mmFromEdge to python and commandCreator
|
66 |
| - const python = `${pipettePythonName}.touch_tip(\n${indentPyLines( |
67 |
| - pythonArgs.join('\n') |
68 |
| - )}\n)` |
| 66 | + const python = `${pipettePythonName}.touch_tip(${pythonArgs.join(', ')})` |
69 | 67 |
|
70 | 68 | const commands: CreateCommand[] = [
|
71 | 69 | {
|
|
0 commit comments