Skip to content

Commit

Permalink
lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Feb 10, 2025
1 parent 0bd0350 commit 5983cd6
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 22 deletions.
12 changes: 6 additions & 6 deletions api/src/opentrons/protocol_engine/state/addressable_areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ def _add_addressable_area(self, addressable_area_name: str) -> None:
deck_definition=self._state.deck_definition,
)
)
self._state.loaded_addressable_areas_by_name[addressable_area.area_name] = (
addressable_area
)
self._state.loaded_addressable_areas_by_name[
addressable_area.area_name
] = addressable_area

def _validate_addressable_area_for_simulation(
self, addressable_area_name: str
Expand All @@ -236,9 +236,9 @@ def _validate_addressable_area_for_simulation(
set(potential_fixtures)
)

self._state.potential_cutout_fixtures_by_cutout_id[cutout_id] = (
remaining_fixtures
)
self._state.potential_cutout_fixtures_by_cutout_id[
cutout_id
] = remaining_fixtures
else:
self._state.potential_cutout_fixtures_by_cutout_id[cutout_id] = set(
potential_fixtures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
OnLabwareLocationSequenceComponent,
NotOnDeckLocationSequenceComponent,
OnCutoutFixtureLocationSequenceComponent,
PotentialCutoutFixture,
)
from opentrons.protocol_engine.commands import (
CommandStatus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ stages:
moduleId: temperatureModuleId
- kind: onAddressableArea
addressableAreaName: '1'
slotName: '1'
- kind: onCutoutFixture
cutoutId: cutout1
possibleCutoutFixtureIds:
- 'singleStandardSlot'
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -237,7 +240,10 @@ stages:
moduleId: magneticModuleId
- kind: onAddressableArea
addressableAreaName: '3'
slotName: '3'
- kind: onCutoutFixture
cutoutId: cutout3
possibleCutoutFixtureIds:
- 'singleStandardSlot'
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -260,7 +266,10 @@ stages:
locationSequence:
- kind: onAddressableArea
addressableAreaName: '8'
slotName: '8'
- kind: onCutoutFixture
cutoutId: cutout8
possibleCutoutFixtureIds:
- 'singleStandardSlot'
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,19 @@ stages:
labwareId: sourcePlateId
definition: !anydict
locationSequence:
- kind: onModule
moduleId: temperatureModuleId
- kind: onAddressableArea
addressableAreaName: temperatureModuleV2D1
slotName: D1
- kind: onModule
moduleId: temperatureModuleId
- kind: onCutoutFixture
cutoutId: cutoutD1
# note: this is not how it should work and happens because the loadModule
# command always loads onto an addressable area, presenting a conflict between
# the cutout fixture required by the module being present and the cutout fixture
# required by the deck slot addressable area that was used to load the module
# being present. other work will fix this, and once that other work is merged
# this value should be ["temperatureModuleV2"]
possibleCutoutFixtureIds: []
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -244,11 +252,14 @@ stages:
labwareId: destPlateId
definition: !anydict
locationSequence:
- kind: onModule
moduleId: magneticBlockId
- kind: onAddressableArea
addressableAreaName: magneticBlockV1D3
slotName: D3
- kind: onModule
moduleId: magneticBlockId
- kind: onCutoutFixture
cutoutId: cutoutD3
# note: this should be ["magneticBlockV1"], see above
possibleCutoutFixtureIds: []
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -271,7 +282,10 @@ stages:
locationSequence:
- kind: onAddressableArea
addressableAreaName: B2
slotName: B2
- kind: onCutoutFixture
cutoutId: cutoutB2
possibleCutoutFixtureIds:
- singleCenterSlot
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -294,7 +308,12 @@ stages:
locationSequence:
- kind: onAddressableArea
addressableAreaName: A3
slotName: A3
- kind: onCutoutFixture
cutoutId: cutoutA3
possibleCutoutFixtureIds:
- flexStackerModuleV1
- singleRightSlot
- stagingAreaRightSlot
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ stages:
moduleId: temperatureModuleId
- kind: onAddressableArea
addressableAreaName: '1'
slotName: '1'
- kind: onCutoutFixture
cutoutId: cutout1
possibleCutoutFixtureIds:
- singleStandardSlot
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -248,7 +251,10 @@ stages:
moduleId: magneticModuleId
- kind: onAddressableArea
addressableAreaName: '3'
slotName: '3'
- kind: onCutoutFixture
cutoutId: cutout3
possibleCutoutFixtureIds:
- singleStandardSlot
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -271,7 +277,10 @@ stages:
locationSequence:
- kind: onAddressableArea
addressableAreaName: '8'
slotName: '8'
- kind: onCutoutFixture
cutoutId: cutout8
possibleCutoutFixtureIds:
- singleStandardSlot
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand All @@ -294,7 +303,10 @@ stages:
locationSequence:
- kind: onAddressableArea
addressableAreaName: '12'
slotName: '12'
- kind: onCutoutFixture
cutoutId: cutout12
possibleCutoutFixtureIds:
- singleStandardSlot
notes: []
startedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
completedAt: !re_fullmatch "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+(Z|([+-]\\d{2}:\\d{2}))"
Expand Down

0 comments on commit 5983cd6

Please sign in to comment.