Skip to content

Commit

Permalink
fix(api,app,shared-data): Fix LPC for protocols using the plate reade…
Browse files Browse the repository at this point in the history
…r module. (#16453)
  • Loading branch information
vegano1 authored Oct 11, 2024
1 parent ca6488f commit daf2280
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
14 changes: 9 additions & 5 deletions api/src/opentrons/protocol_engine/commands/load_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pydantic import BaseModel, Field

from .command import AbstractCommandImpl, BaseCommand, BaseCommandCreate, SuccessData
from ..errors import ModuleNotLoadedError
from ..errors.error_occurrence import ErrorOccurrence
from ..types import (
DeckSlotLocation,
Expand Down Expand Up @@ -159,11 +160,14 @@ async def execute(
and params.model == ModuleModel.ABSORBANCE_READER_V1
and params.moduleId is not None
):
abs_reader = self._equipment.get_module_hardware_api(
self._state_view.modules.get_absorbance_reader_substate(
params.moduleId
).module_id
)
try:
abs_reader = self._equipment.get_module_hardware_api(
self._state_view.modules.get_absorbance_reader_substate(
params.moduleId
).module_id
)
except ModuleNotLoadedError:
abs_reader = None

if abs_reader is not None:
result = await abs_reader.get_current_lid_status()
Expand Down
5 changes: 4 additions & 1 deletion app/src/organisms/LabwarePositionCheck/useLaunchLPC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import { getLabwareDefinitionsFromCommands } from '/app/molecules/Command/utils/

import type { RobotType } from '@opentrons/shared-data'

const filteredLabware = ['opentrons_tough_pcr_auto_sealing_lid']
const filteredLabware = [
'opentrons_tough_pcr_auto_sealing_lid',
'opentrons_flex_lid_absorbance_plate_reader_module',
]

export function useLaunchLPC(
runId: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ function getAllCheckSectionSteps(
[]
)

return labwareLocations.map(
// HACK: Remove LPC for plate reader to unblock science.
const filteredLabwareLocations = labwareLocations.filter(labware => {
return labware.location?.moduleModel !== 'absorbanceReaderV1'
})

return filteredLabwareLocations.map(
({ location, labwareId, moduleId, adapterId, definitionUri }) => ({
section: SECTIONS.CHECK_POSITIONS,
labwareId: labwareId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"namespace": "opentrons",
"version": 1,
"schemaVersion": 2,
"allowedRoles": ["fixture"],
"allowedRoles": ["fixture", "lid"],
"gripForce": 21.0,
"gripHeightFromLabwareBottom": 48.0,
"cornerOffsetFromSlot": {
Expand Down

0 comments on commit daf2280

Please sign in to comment.