Skip to content

Commit

Permalink
fix(app): ODD fixture removal, mag block with staging in deck map, ad…
Browse files Browse the repository at this point in the history
…d modules to drop tip wizard (#15019)
  • Loading branch information
b-cooper authored Apr 26, 2024
1 parent b2965a6 commit 471ec35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
EIGHT_CHANNEL_WASTE_CHUTE_ADDRESSABLE_AREA,
FLEX_MODULE_ADDRESSABLE_AREAS,
getCutoutIdForAddressableArea,
getDeckDefFromRobotType,
MOVABLE_TRASH_ADDRESSABLE_AREAS,
Expand Down Expand Up @@ -46,9 +47,11 @@ export function getAddressableAreaFromConfig(
if (providedAddressableAreas.includes(addressableArea)) {
addressableAreaFromConfig = addressableArea
} else if (
// if no, check if provides a movable trash
providedAddressableAreas.some(aa =>
MOVABLE_TRASH_ADDRESSABLE_AREAS.includes(aa)
// if no, check if provides a movable trash or module fixture
providedAddressableAreas.some(
aa =>
MOVABLE_TRASH_ADDRESSABLE_AREAS.includes(aa) ||
FLEX_MODULE_ADDRESSABLE_AREAS.includes(aa)
)
) {
addressableAreaFromConfig = providedAddressableAreas[0]
Expand Down
5 changes: 4 additions & 1 deletion components/src/hardware-sim/BaseDeck/BaseDeck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
WASTE_CHUTE_STAGING_AREA_FIXTURES,
HEATERSHAKER_MODULE_V1,
MODULE_FIXTURES_BY_MODEL,
STAGING_AREA_SLOT_WITH_MAGNETIC_BLOCK_V1_FIXTURE,
} from '@opentrons/shared-data'

import { RobotCoordinateSpace } from '../RobotCoordinateSpace'
Expand Down Expand Up @@ -114,7 +115,9 @@ export function BaseDeck(props: BaseDeckProps): JSX.Element {
)
const stagingAreaFixtures = deckConfig.filter(
fixture =>
fixture.cutoutFixtureId === STAGING_AREA_RIGHT_SLOT_FIXTURE &&
(fixture.cutoutFixtureId === STAGING_AREA_RIGHT_SLOT_FIXTURE ||
fixture.cutoutFixtureId ===
STAGING_AREA_SLOT_WITH_MAGNETIC_BLOCK_V1_FIXTURE) &&
STAGING_AREA_CUTOUTS.includes(fixture.cutoutId)
)
const trashBinFixtures = deckConfig.filter(
Expand Down

0 comments on commit 471ec35

Please sign in to comment.