@@ -1906,14 +1906,11 @@ async def move_resource(
1906
1906
resource : Resource ,
1907
1907
to : Union [ResourceStack , ResourceHolder , Resource , Coordinate ],
1908
1908
intermediate_locations : Optional [List [Coordinate ]] = None ,
1909
- resource_offset : Optional [Coordinate ] = None ,
1910
1909
pickup_offset : Coordinate = Coordinate .zero (),
1911
1910
destination_offset : Coordinate = Coordinate .zero (),
1912
1911
pickup_distance_from_top : float = 0 ,
1913
1912
pickup_direction : GripDirection = GripDirection .FRONT ,
1914
1913
drop_direction : GripDirection = GripDirection .FRONT ,
1915
- get_direction : Optional [GripDirection ] = None ,
1916
- put_direction : Optional [GripDirection ] = None ,
1917
1914
** backend_kwargs ,
1918
1915
):
1919
1916
"""Move a resource to a new location.
@@ -1936,17 +1933,6 @@ async def move_resource(
1936
1933
drop_direction: The direction from which to put down the resource.
1937
1934
"""
1938
1935
1939
- # TODO: move conditional statements from move_plate into move_resource to enable
1940
- # movement to other types besides Coordinate
1941
-
1942
- # https://github.com/PyLabRobot/pylabrobot/issues/329
1943
- if resource_offset is not None :
1944
- raise NotImplementedError ("resource_offset is deprecated, use pickup_offset instead" )
1945
- if get_direction is not None :
1946
- raise NotImplementedError ("get_direction is deprecated, use pickup_direction instead" )
1947
- if put_direction is not None :
1948
- raise NotImplementedError ("put_direction is deprecated, use drop_direction instead" )
1949
-
1950
1936
extra = self ._check_args (
1951
1937
self .backend .pick_up_resource ,
1952
1938
backend_kwargs ,
@@ -1986,13 +1972,10 @@ async def move_lid(
1986
1972
lid : Lid ,
1987
1973
to : Union [Plate , ResourceStack , Coordinate ],
1988
1974
intermediate_locations : Optional [List [Coordinate ]] = None ,
1989
- resource_offset : Optional [Coordinate ] = None ,
1990
1975
pickup_offset : Coordinate = Coordinate .zero (),
1991
1976
destination_offset : Coordinate = Coordinate .zero (),
1992
1977
pickup_direction : GripDirection = GripDirection .FRONT ,
1993
1978
drop_direction : GripDirection = GripDirection .FRONT ,
1994
- get_direction : Optional [GripDirection ] = None ,
1995
- put_direction : Optional [GripDirection ] = None ,
1996
1979
pickup_distance_from_top : float = 5.7 - 3.33 ,
1997
1980
** backend_kwargs ,
1998
1981
):
@@ -2020,14 +2003,6 @@ async def move_lid(
2020
2003
ValueError: If the lid is not assigned to a resource.
2021
2004
"""
2022
2005
2023
- # https://github.com/PyLabRobot/pylabrobot/issues/329
2024
- if resource_offset is not None :
2025
- raise NotImplementedError ("resource_offset is deprecated, use pickup_offset instead" )
2026
- if get_direction is not None :
2027
- raise NotImplementedError ("get_direction is deprecated, use pickup_direction instead" )
2028
- if put_direction is not None :
2029
- raise NotImplementedError ("put_direction is deprecated, use drop_direction instead" )
2030
-
2031
2006
await self .move_resource (
2032
2007
lid ,
2033
2008
to = to ,
@@ -2045,13 +2020,10 @@ async def move_plate(
2045
2020
plate : Plate ,
2046
2021
to : Union [ResourceStack , ResourceHolder , Resource , Coordinate ],
2047
2022
intermediate_locations : Optional [List [Coordinate ]] = None ,
2048
- resource_offset : Optional [Coordinate ] = None ,
2049
2023
pickup_offset : Coordinate = Coordinate .zero (),
2050
2024
destination_offset : Coordinate = Coordinate .zero (),
2051
2025
drop_direction : GripDirection = GripDirection .FRONT ,
2052
2026
pickup_direction : GripDirection = GripDirection .FRONT ,
2053
- get_direction : Optional [GripDirection ] = None ,
2054
- put_direction : Optional [GripDirection ] = None ,
2055
2027
pickup_distance_from_top : float = 13.2 - 3.33 ,
2056
2028
** backend_kwargs ,
2057
2029
):
@@ -2087,14 +2059,6 @@ async def move_plate(
2087
2059
destination_offset: The offset from the location's origin, optional (rarely necessary).
2088
2060
"""
2089
2061
2090
- # https://github.com/PyLabRobot/pylabrobot/issues/329
2091
- if resource_offset is not None :
2092
- raise NotImplementedError ("resource_offset is deprecated, use pickup_offset instead" )
2093
- if get_direction is not None :
2094
- raise NotImplementedError ("get_direction is deprecated, use pickup_direction instead" )
2095
- if put_direction is not None :
2096
- raise NotImplementedError ("put_direction is deprecated, use drop_direction instead" )
2097
-
2098
2062
await self .move_resource (
2099
2063
plate ,
2100
2064
to = to ,
0 commit comments