Skip to content

Commit

Permalink
Adjustment to support trash labware
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Dec 7, 2023
1 parent 21432b4 commit 6fd0245
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/src/opentrons/protocol_api/core/engine/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ def __init__(
] = {}
self._disposal_locations: List[Union[Labware, TrashBin, WasteChute]] = []
self._load_fixed_trash()
if(self._api_version < APIVersion(2,16)):
#add to disposal locations a fixed trash labware
elif(self._api_version >= APIVersion(2,16) and self.robot_type == "OT-2 Standard"):
fixed_trash: TrashBin(
location=DeckSlotName.FIXED_TRASH, addressable_area_name="fixedTrash"
)
self._disposal_locations.append(fixed_trash)

@property
def api_version(self) -> APIVersion:
Expand Down
7 changes: 7 additions & 0 deletions api/src/opentrons/protocol_api/protocol_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ def __init__(
}
self._bundled_data: Dict[str, bytes] = bundled_data or {}
self._load_fixed_trash()
if(self._api_version < APIVersion(2,16)):
self._core.append_disposal_location(self.fixed_trash)
elif(self._api_version >= APIVersion(2,16) and self.robot_type == "OT-2 Standard"):
fixed_trash: TrashBin(
location=DeckSlotName.FIXED_TRASH, addressable_area_name="fixedTrash"
)
self._core.append_disposal_location(fixed_trash)

self._commands: List[str] = []
self._unsubscribe_commands: Optional[Callable[[], None]] = None
Expand Down

0 comments on commit 6fd0245

Please sign in to comment.