Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pylabrobot/heating_shaking/heater_shaker.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from typing import Optional

from pylabrobot.resources.coordinate import Coordinate
from pylabrobot.shaking import Shaker
from pylabrobot.temperature_controlling import TemperatureController

Expand All @@ -16,6 +17,7 @@ def __init__(
size_y: float,
size_z: float,
backend: HeaterShakerBackend,
child_location: Coordinate,
category: str = "heating_shaking",
model: Optional[str] = None,
):
Expand All @@ -25,6 +27,7 @@ def __init__(
size_y=size_y,
size_z=size_z,
backend=backend,
child_location=child_location,
category=category,
model=model,
)
Expand Down
4 changes: 3 additions & 1 deletion pylabrobot/shaking/shaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Optional

from pylabrobot.machines.machine import Machine
from pylabrobot.resources.resource_holder import ResourceHolder
from pylabrobot.resources import Coordinate, ResourceHolder

from .backend import ShakerBackend

Expand All @@ -17,6 +17,7 @@ def __init__(
size_y: float,
size_z: float,
backend: ShakerBackend,
child_location: Coordinate,
category: str = "shaker",
model: Optional[str] = None,
):
Expand All @@ -28,6 +29,7 @@ def __init__(
size_z=size_z,
category=category,
model=model,
child_location=child_location,
)
Machine.__init__(self, backend=backend)
self.backend: ShakerBackend = backend # fix type
Expand Down
4 changes: 3 additions & 1 deletion pylabrobot/temperature_controlling/opentrons.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(
self,
name: str,
opentrons_id: str,
child_location: Coordinate = Coordinate.zero(),
child: Optional[ItemizedResource] = None,
):
"""Create a new Opentrons temperature module v2.
Expand All @@ -38,6 +39,7 @@ def __init__(
size_x=193.5,
size_y=89.2,
size_z=84.0, # height without any aluminum block
child_location=child_location,
backend=OpentronsTemperatureModuleBackend(opentrons_id=opentrons_id),
category="temperature_controller",
model="temperatureModuleV2", # Must match OT moduleModel in list_connected_modules()
Expand All @@ -47,4 +49,4 @@ def __init__(
self.child = child

if child is not None:
self.assign_child_resource(child, location=Coordinate(x=0, y=0, z=0))
self.assign_child_resource(child)
4 changes: 3 additions & 1 deletion pylabrobot/temperature_controlling/temperature_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional

from pylabrobot.machines.machine import Machine
from pylabrobot.resources.resource_holder import ResourceHolder
from pylabrobot.resources import Coordinate, ResourceHolder

from .backend import TemperatureControllerBackend

Expand All @@ -18,6 +18,7 @@ def __init__(
size_y: float,
size_z: float,
backend: TemperatureControllerBackend,
child_location: Coordinate,
category: str = "temperature_controller",
model: Optional[str] = None,
):
Expand All @@ -27,6 +28,7 @@ def __init__(
size_x=size_x,
size_y=size_y,
size_z=size_z,
child_location=child_location,
category=category,
model=model,
)
Expand Down