Skip to content

Commit

Permalink
add with_wash_station param to TecanDeck.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwierenga committed Apr 1, 2024
1 parent 3e353e4 commit af2784d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pylabrobot/resources/tecan/tecan_decks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,18 @@ def __init__(
name: str = "deck",
category: str = "deck",
origin: Coordinate = Coordinate(0, 0, 0),
with_wash_station: bool = True
):
super().__init__(name=name, size_x=size_x, size_y=size_y, size_z=size_z, category=category,
origin=origin)
self.num_rails = num_rails

wash = Wash_Station(name="wash_station")
wash[0] = Wash_Station_Cleaner_deep(name="wash_clean_deep")
wash[1] = Wash_Station_Waste(name="wash_waste")
wash[2] = Wash_Station_Cleaner_shallow(name="wash_clean_shallow")
self.assign_child_resource(wash, rails=1)
if with_wash_station:
wash = Wash_Station(name="wash_station")
wash[0] = Wash_Station_Cleaner_deep(name="wash_clean_deep")
wash[1] = Wash_Station_Waste(name="wash_waste")
wash[2] = Wash_Station_Cleaner_shallow(name="wash_clean_shallow")
self.assign_child_resource(wash, rails=1)

def serialize(self) -> dict:
return {
Expand Down

0 comments on commit af2784d

Please sign in to comment.