File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
pylabrobot/liquid_handling/backends/hamilton Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -6829,24 +6829,31 @@ async def park_autoload(self):
68296829
68306830 # TODO:(command:CA) Push out carrier to loading tray (after identification CI)
68316831
6832- async def unload_carrier (self , carrier : Carrier ):
6832+ async def unload_carrier (
6833+ self ,
6834+ carrier : Carrier ,
6835+ park_autoload_after : bool = True ,
6836+ ):
68336837 """Use autoload to unload carrier."""
68346838 # Identify carrier end rail
68356839 track_width = 22.5
68366840 carrier_width = carrier .get_location_wrt (self .deck ).x - 100 + carrier .get_absolute_size_x ()
68376841 carrier_end_rail = int (carrier_width / track_width )
6842+
68386843 assert 1 <= carrier_end_rail <= 54 , "carrier loading rail must be between 1 and 54"
68396844
68406845 carrier_end_rail_str = str (carrier_end_rail ).zfill (2 )
68416846
6842- # Unload and read out barcodes
6847+ # Unload
68436848 resp = await self .send_command (
68446849 module = "C0" ,
68456850 command = "CR" ,
68466851 cp = carrier_end_rail_str ,
68476852 )
6848- # Park autoload
6849- await self .park_autoload ()
6853+
6854+ if park_autoload_after :
6855+ await self .park_autoload ()
6856+
68506857 return resp
68516858
68526859 async def load_carrier (
You can’t perform that action at this time.
0 commit comments