Skip to content

Commit

Permalink
fix(protocol-designer): change DEFAULT_SLOT_MAP_OT2 TC slot to be 7 i…
Browse files Browse the repository at this point in the history
…nstead of span7_8_10_11 (#16585)

* fix(protocol-designer): change DEFAULT_SLOT_MAP_OT2 TC slot to be 7 instead of span7_8_10_11
  • Loading branch information
koji authored Oct 23, 2024
1 parent e520e41 commit 5965706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
MAGNETIC_MODULE_V1,
MAGNETIC_MODULE_V2,
OT2_ROBOT_TYPE,
SPAN7_8_10_11_SLOT,
TEMPERATURE_MODULE_TYPE,
TEMPERATURE_MODULE_V1,
TEMPERATURE_MODULE_V2,
Expand Down Expand Up @@ -132,7 +131,7 @@ export const DEFAULT_SLOT_MAP_FLEX: {
}

export const DEFAULT_SLOT_MAP_OT2: { [moduleType in ModuleType]?: string } = {
[THERMOCYCLER_MODULE_TYPE]: SPAN7_8_10_11_SLOT,
[THERMOCYCLER_MODULE_TYPE]: '7',
[HEATERSHAKER_MODULE_TYPE]: '1',
[MAGNETIC_MODULE_TYPE]: '1',
[TEMPERATURE_MODULE_TYPE]: '3',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
inferModuleOrientationFromXCoordinate,
isAddressableAreaStandardSlot,
THERMOCYCLER_MODULE_TYPE,
SPAN7_8_10_11_SLOT,
} from '@opentrons/shared-data'
import { LabwareOnDeck } from '../../components/DeckSetup/LabwareOnDeck'
import { getStagingAreaAddressableAreas } from '../../utils'
Expand Down Expand Up @@ -67,11 +66,7 @@ export const DeckThumbnailDetails = (
<>
{/* all modules */}
{allModules.map(({ id, slot, model, type, moduleState }) => {
const slotId =
slot === SPAN7_8_10_11_SLOT && type === THERMOCYCLER_MODULE_TYPE
? '7'
: slot

const slotId = slot
const slotPosition = getPositionFromSlotId(slotId, deckDef)
if (slotPosition == null) {
console.warn(`no slot ${slotId} for module ${id}`)
Expand Down

0 comments on commit 5965706

Please sign in to comment.