Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwierenga committed Dec 22, 2023
2 parents 105462c + 5bc4f0d commit bfa2dda
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Thank you for your interest in contributing to PyLabRobot! This document will he

See the installation instructions [here](docs/installation.md). For contributing, you should install PyLabRobot from source.

If this is your first time contributing to open source, check out [How to Open Source](./how-to-open-source.md) for an easy introduction.
If this is your first time contributing to open source, check out [How to Open Source](./docs/how-to-open-source.md) for an easy introduction.

It's highly appreciated by the PyLabRobot developers if you communicate what you want to work on, to minimize any duplicate work. You can do this on the [forum](https://forums.pylabrobot.org/c/pylabrobot-development/23).

Expand Down
2 changes: 1 addition & 1 deletion pylabrobot/liquid_handling/backends/serializing_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async def move_resource(self, move: Move, **backend_kwargs):
"to": serialize(move.destination),
"intermediate_locations": [serialize(loc) for loc in move.intermediate_locations],
"resource_offset": serialize(move.resource_offset),
"to_offset": serialize(move.destination_offset),
"destination_offset": serialize(move.destination_offset),
"pickup_distance_from_top": move.pickup_distance_from_top,
"get_direction": serialize(move.get_direction),
"put_direction": serialize(move.put_direction),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def test_move(self):
"to": serialize(to),
"intermediate_locations": [],
"resource_offset": serialize(Coordinate.zero()),
"to_offset": serialize(Coordinate.zero()),
"destination_offset": serialize(Coordinate.zero()),
"pickup_distance_from_top": 13.2,
"get_direction": "FRONT",
"put_direction": "FRONT",
Expand Down
12 changes: 6 additions & 6 deletions pylabrobot/liquid_handling/liquid_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ async def move_lid(
to: Union[Plate, ResourceStack, Coordinate],
intermediate_locations: Optional[List[Coordinate]] = None,
resource_offset: Coordinate = Coordinate.zero(),
to_offset: Coordinate = Coordinate.zero(),
destination_offset: Coordinate = Coordinate.zero(),
get_direction: GripDirection = GripDirection.FRONT,
put_direction: GripDirection = GripDirection.FRONT,
pickup_distance_from_top: float = 5.7,
Expand All @@ -1240,7 +1240,7 @@ async def move_lid(
lid: The lid to move. Can be either a Plate object or a Lid object.
to: The location to move the lid to, either a plate, ResourceStack or a Coordinate.
resource_offset: The offset from the resource's origin, optional (rarely necessary).
to_offset: The offset from the location's origin, optional (rarely necessary).
destination_offset: The offset from the location's origin, optional (rarely necessary).
Raises:
ValueError: If the lid is not assigned to a resource.
Expand Down Expand Up @@ -1270,7 +1270,7 @@ async def move_lid(
intermediate_locations=intermediate_locations,
pickup_distance_from_top=pickup_distance_from_top,
resource_offset=resource_offset,
to_offset=to_offset,
destination_offset=destination_offset,
get_direction=get_direction,
put_direction=put_direction,
**backend_kwargs)
Expand All @@ -1289,7 +1289,7 @@ async def move_plate(
to: Union[ResourceStack, CarrierSite, Resource, Coordinate],
intermediate_locations: Optional[List[Coordinate]] = None,
resource_offset: Coordinate = Coordinate.zero(),
to_offset: Coordinate = Coordinate.zero(),
destination_offset: Coordinate = Coordinate.zero(),
put_direction: GripDirection = GripDirection.FRONT,
get_direction: GripDirection = GripDirection.FRONT,
pickup_distance_from_top: float = 13.2,
Expand Down Expand Up @@ -1324,7 +1324,7 @@ async def move_plate(
plate: The plate to move. Can be either a Plate object or a CarrierSite object.
to: The location to move the plate to, either a plate, CarrierSite or a Coordinate.
resource_offset: The offset from the resource's origin, optional (rarely necessary).
to_offset: The offset from the location's origin, optional (rarely necessary).
destination_offset: The offset from the location's origin, optional (rarely necessary).
"""

if isinstance(to, ResourceStack):
Expand All @@ -1345,7 +1345,7 @@ async def move_plate(
intermediate_locations=intermediate_locations,
pickup_distance_from_top=pickup_distance_from_top,
resource_offset=resource_offset,
to_offset=to_offset,
destination_offset=destination_offset,
get_direction=get_direction,
put_direction=put_direction,
**backend_kwargs)
Expand Down
2 changes: 2 additions & 0 deletions pylabrobot/liquid_handling/liquid_handler_tests.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
""" Tests for LiquidHandler """
# pylint: disable=missing-class-docstring

import pytest
import tempfile
from typing import Any, Dict, List, Optional, cast
import unittest
Expand Down Expand Up @@ -496,6 +497,7 @@ async def test_aspirate_with_lid(self):
with self.assertRaises(ValueError):
await self.lh.aspirate([well], vols=10)

@pytest.mark.filterwarnings("ignore:Extra arguments to backend.pick_up_tips")
async def test_strictness(self):
class TestBackend(backends.SaverBackend):
""" Override pick_up_tips for testing. """
Expand Down

0 comments on commit bfa2dda

Please sign in to comment.