From 31f59dc2aa578f968f7da5373015b8a4adc2cfcd Mon Sep 17 00:00:00 2001 From: Guangxin Zhang Date: Thu, 17 Jul 2025 14:38:50 +0800 Subject: [PATCH] Update prcxi.py --- .../devices/liquid_handling/prcxi/prcxi.py | 39 ++++++++----------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/unilabos/devices/liquid_handling/prcxi/prcxi.py b/unilabos/devices/liquid_handling/prcxi/prcxi.py index b9a410f..6204075 100644 --- a/unilabos/devices/liquid_handling/prcxi/prcxi.py +++ b/unilabos/devices/liquid_handling/prcxi/prcxi.py @@ -478,11 +478,6 @@ class PRCXI9300Backend(LiquidHandlerBackend): return - # 判断是不是个trash? - # if all(isinstance(op.resource, Trash) for op in ops): - # print("All drop operations are for trash.") - # await self.discard_tips() - # return if len(ops) != 8: raise ValueError(f"PRCXI9300Backend drop_tips: Expected 8 pickups, got {len(ops)}") @@ -1079,28 +1074,28 @@ if __name__ == "__main__": handler.set_tiprack([tip_rack]) # Set the tip rack for the handler asyncio.run(handler.setup()) # Initialize the handler and setup the connection asyncio.run(handler.create_protocol(protocol_name="Test Protocol")) # Initialize the backend and setup the connection - asyncio.run(handler.pick_up_tips(tip_rack.children[:8],[0,1,2,3,4,5,6,7])) + # asyncio.run(handler.pick_up_tips(tip_rack.children[:8],[0,1,2,3,4,5,6,7])) # asyncio.run(handler.aspirate(well_containers.children[:8],[50]*8, [0,1,2,3,4,5,6,7])) # asyncio.run(handler.dispense(well_containers.children[:8],[50]*8,[0,1,2,3,4,5,6,7])) #asyncio.run(handler.drop_tips(tip_rack.children[8:16],[0,1,2,3,4,5,6,7])) - asyncio.run(handler.discard_tips()) + # asyncio.run(handler.discard_tips()) # asyncio.run(handler.mix(well_containers.children[:8], mix_time=3, mix_vol=50, height_to_bottom=0.5, offsets=Coordinate(0, 0, 0), mix_rate=100)) #print(json.dumps(handler._unilabos_backend.steps_todo_list, indent=2)) # Print matrix info - # asyncio.run(handler.add_liquid( - # asp_vols=[100]*16, - # dis_vols=[100]*16, - # reagent_sources=well_containers.children[-16:], - # targets=well_containers.children[:16], - # use_channels=[0, 1, 2, 3, 4, 5, 6, 7], - # flow_rates=[None] * 32, - # offsets=[Coordinate(0, 0, 0)] * 32, - # liquid_height=[None] * 16, - # blow_out_air_volume=[None] * 16, - # delays=None, - # mix_time=3, - # mix_vol=50, - # spread="wide", - # )) + asyncio.run(handler.add_liquid( + asp_vols=[100]*16, + dis_vols=[100]*16, + reagent_sources=well_containers.children[-16:], + targets=well_containers.children[:16], + use_channels=[0, 1, 2, 3, 4, 5, 6, 7], + flow_rates=[None] * 32, + offsets=[Coordinate(0, 0, 0)] * 32, + liquid_height=[None] * 16, + blow_out_air_volume=[None] * 16, + delays=None, + mix_time=3, + mix_vol=50, + spread="wide", + )) # asyncio.run(handler.remove_liquid( # vols=[100]*16,