Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Sep 20, 2024
1 parent d71a01b commit 3521e75
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from opentrons.protocol_engine.resources import labware_validation
from .types import MoveLidResult
from ...state.update_types import StateUpdate, BaseLabwareData
from ...state.update_types import StateUpdate


from opentrons.drivers.types import AbsorbanceReaderLidStatus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from opentrons.drivers.types import AbsorbanceReaderLidStatus

from ...state.update_types import StateUpdate, BaseLabwareData
from ...state.update_types import StateUpdate


if TYPE_CHECKING:
Expand Down Expand Up @@ -55,8 +55,6 @@ def __init__(

async def execute(self, params: OpenLidParams) -> SuccessData[OpenLidResult, None]:
"""Move the absorbance reader lid from the module to the lid dock."""
state_update = StateUpdate()

mod_substate = self._state_view.modules.get_absorbance_reader_substate(
module_id=params.moduleId
)
Expand Down Expand Up @@ -130,6 +128,8 @@ async def execute(self, params: OpenLidParams) -> SuccessData[OpenLidResult, Non
labware_location=new_location,
)

state_update = StateUpdate()

state_update.set_lid_status(
labware_id=loaded_lid.id, location=new_location, offset_id=new_offset_id
)
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_engine/commands/move_labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from ..resources import labware_validation, fixture_validation
from .command import AbstractCommandImpl, BaseCommand, BaseCommandCreate, SuccessData
from ..errors.error_occurrence import ErrorOccurrence
from ..state.update_types import BaseLabwareData, StateUpdate, UpdateLabwareLocation
from ..state.update_types import StateUpdate, UpdateLabwareLocation
from opentrons_shared_data.gripper.constants import GRIPPER_PADDLE_WIDTH

if TYPE_CHECKING:
Expand Down
6 changes: 3 additions & 3 deletions api/src/opentrons/protocol_engine/commands/reload_labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from .command import AbstractCommandImpl, BaseCommand, BaseCommandCreate, SuccessData
from ..errors.error_occurrence import ErrorOccurrence
from ..state.update_types import BaseLabwareData, StateUpdate
from ..state.update_types import StateUpdate

if TYPE_CHECKING:
from ..state.state import StateView
Expand Down Expand Up @@ -61,12 +61,12 @@ async def execute(
self, params: ReloadLabwareParams
) -> SuccessData[ReloadLabwareResult, None]:
"""Reload the definition and calibration data for a specific labware."""
state_update = StateUpdate()

reloaded_labware = await self._equipment.reload_labware(
labware_id=params.labwareId,
)

state_update = StateUpdate()

state_update.set_reloaded_labware(
labware_id=params.labwareId,
location=reloaded_labware.location,
Expand Down
2 changes: 1 addition & 1 deletion api/src/opentrons/protocol_engine/execution/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from .create_queue_worker import create_queue_worker
from .equipment import (
EquipmentHandler,
LoadedLabwareData,
LoadedPipetteData,
LoadedModuleData,
LoadedConfigureForVolumeData,
LoadedLabwareData,
ReloadedLabwareData,
)
from .movement import MovementHandler
Expand Down

0 comments on commit 3521e75

Please sign in to comment.