Skip to content

Commit

Permalink
add waste chute addressable area constants
Browse files Browse the repository at this point in the history
  • Loading branch information
brenthagen committed Nov 9, 2023
1 parent 32f78c8 commit 3b29085
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
getDeckDefFromRobotType,
getModuleDisplayName,
FLEX_ROBOT_TYPE,
WASTE_CHUTE_ADDRESSABLE_AREAS,
WASTE_CHUTE_CUTOUT,
} from '@opentrons/shared-data'
import {
Expand Down Expand Up @@ -196,7 +197,7 @@ export const getUnocuppiedLabwareLocationOptions: Selector<
.map(lw => lw.slot)
.includes(slotId) &&
slotId !== trashSlot &&
(hasWasteChute ? slotId !== WASTE_CHUTE_CUTOUT : true)
(hasWasteChute ? !(slotId in WASTE_CHUTE_ADDRESSABLE_AREAS) : true)
)
.map(slotId => ({ name: slotId, value: slotId }))
const offDeck = { name: 'Off-deck', value: 'offDeck' }
Expand Down
13 changes: 13 additions & 0 deletions shared-data/js/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,16 @@ export const STAGING_AREA_LOAD_NAME = 'stagingArea'
export const STANDARD_SLOT_LOAD_NAME = 'standardSlot'
export const TRASH_BIN_LOAD_NAME = 'trashBin'
export const WASTE_CHUTE_LOAD_NAME = 'wasteChute'

export const ONE_AND_EIGHT_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA: '1and8ChannelWasteChute' =
'1and8ChannelWasteChute'
export const NINETY_SIX_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA: '96ChannelWasteChute' =
'96ChannelWasteChute'
export const GRIPPER_WASTE_CHUTE_ADDRESSABLE_AREA: 'gripperWasteChute' =
'gripperWasteChute'

export const WASTE_CHUTE_ADDRESSABLE_AREAS = [
ONE_AND_EIGHT_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA,
NINETY_SIX_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA,
GRIPPER_WASTE_CHUTE_ADDRESSABLE_AREA,
]

0 comments on commit 3b29085

Please sign in to comment.