Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Dec 19, 2024
1 parent 016020b commit 1d27951
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
7 changes: 6 additions & 1 deletion protocol-designer/src/ui/labware/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { getHasWasteChute } from '@opentrons/step-generation'
import { WASTE_CHUTE_DISPLAY_NAME } from '@opentrons/components'
import {
FLEX_ROBOT_TYPE,
TC_MODULE_LOCATION_OT2,
TC_MODULE_LOCATION_OT3,
THERMOCYCLER_MODULE_TYPE,
} from '@opentrons/shared-data'
import type { RobotType } from '@opentrons/shared-data'
Expand All @@ -13,7 +15,10 @@ function resolveSlotLocation(
location: string,
robotType: RobotType
): string {
const TCSlot = robotType === FLEX_ROBOT_TYPE ? 'A1+B1' : '8,9,10,11'
const TCSlot =
robotType === FLEX_ROBOT_TYPE
? TC_MODULE_LOCATION_OT3
: TC_MODULE_LOCATION_OT2
if (location === 'offDeck') {
return 'offDeck'
} else if (modules[location] != null) {
Expand Down
20 changes: 13 additions & 7 deletions protocol-designer/src/ui/modules/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import values from 'lodash/values'
import {
MAGNETIC_MODULE_V1,
ABSORBANCE_READER_TYPE,
getLabwareDefaultEngageHeight,
HEATERSHAKER_MODULE_TYPE,
MAGNETIC_BLOCK_TYPE,
MAGNETIC_MODULE_TYPE,
MAGNETIC_MODULE_V1,
TEMPERATURE_MODULE_TYPE,
THERMOCYCLER_MODULE_TYPE,
} from '@opentrons/shared-data'
import type { DropdownOption } from '@opentrons/components'
import type { ModuleType } from '@opentrons/shared-data'
Expand Down Expand Up @@ -76,17 +82,17 @@ export function getModuleUnderLabware(

export const getModuleShortNames = (type: ModuleType): string => {
switch (type) {
case 'heaterShakerModuleType':
case HEATERSHAKER_MODULE_TYPE:
return 'Heater-Shaker Module'
case 'magneticBlockType':
case MAGNETIC_BLOCK_TYPE:
return 'Magnetic Block'
case 'magneticModuleType':
case MAGNETIC_MODULE_TYPE:
return 'Magnetic Module'
case 'temperatureModuleType':
case TEMPERATURE_MODULE_TYPE:
return 'Temperature Module'
case 'thermocyclerModuleType':
case THERMOCYCLER_MODULE_TYPE:
return 'Thermocycler'
case 'absorbanceReaderType':
case ABSORBANCE_READER_TYPE:
return 'Absorbance Reader'
}
}
Expand Down

0 comments on commit 1d27951

Please sign in to comment.