From bef44b2293280cbde5721335fcddd7329fa9effb Mon Sep 17 00:00:00 2001 From: Guangxin Zhang Date: Sat, 5 Jul 2025 22:03:49 +0800 Subject: [PATCH] Update Prcxi --- .../devices/liquid_handling/prcxi/prcxi.py | 380 +++++++++--------- 1 file changed, 191 insertions(+), 189 deletions(-) diff --git a/unilabos/devices/liquid_handling/prcxi/prcxi.py b/unilabos/devices/liquid_handling/prcxi/prcxi.py index 8196bde..0093c0f 100644 --- a/unilabos/devices/liquid_handling/prcxi/prcxi.py +++ b/unilabos/devices/liquid_handling/prcxi/prcxi.py @@ -130,197 +130,199 @@ class PRCXI9300: # ---------------------------------------------------- 单点动作 -def Load( - axis: str, - dosage: int, - plate_no: int, - is_whole_plate: bool, - hole_row: int, - hole_col: int, - blending_times: int, - balance_height: int, - plate_or_hole: str, - hole_numbers: str, - assist_fun1: str = "", - assist_fun2: str = "", - assist_fun3: str = "", - assist_fun4: str = "", - assist_fun5: str = "", - liquid_method: str = "NormalDispense" -) -> Dict[str, Any]: - return { - "StepAxis": axis, - "Function": "Load", - "DosageNum": dosage, - "PlateNo": plate_no, - "IsWholePlate": is_whole_plate, - "HoleRow": hole_row, - "HoleCol": hole_col, - "BlendingTimes": blending_times, - "BalanceHeight": balance_height, - "PlateOrHoleNum": plate_or_hole, - "AssistFun1": assist_fun1, - "AssistFun2": assist_fun2, - "AssistFun3": assist_fun3, - "AssistFun4": assist_fun4, - "AssistFun5": assist_fun5, - "HoleNumbers": hole_numbers, - "LiquidDispensingMethod": liquid_method - } + def Load( + self, + axis: str, + dosage: int, + plate_no: int, + is_whole_plate: bool, + hole_row: int, + hole_col: int, + blending_times: int, + balance_height: int, + plate_or_hole: str, + hole_numbers: str, + assist_fun1: str = "", + assist_fun2: str = "", + assist_fun3: str = "", + assist_fun4: str = "", + assist_fun5: str = "", + liquid_method: str = "NormalDispense" + ) -> Dict[str, Any]: + return { + "StepAxis": axis, + "Function": "Load", + "DosageNum": dosage, + "PlateNo": plate_no, + "IsWholePlate": is_whole_plate, + "HoleRow": hole_row, + "HoleCol": hole_col, + "BlendingTimes": blending_times, + "BalanceHeight": balance_height, + "PlateOrHoleNum": plate_or_hole, + "AssistFun1": assist_fun1, + "AssistFun2": assist_fun2, + "AssistFun3": assist_fun3, + "AssistFun4": assist_fun4, + "AssistFun5": assist_fun5, + "HoleNumbers": hole_numbers, + "LiquidDispensingMethod": liquid_method + } + + def Imbibing( + self, + axis: str, + dosage: int, + plate_no: int, + is_whole_plate: bool, + hole_row: int, + hole_col: int, + blending_times: int, + balance_height: int, + plate_or_hole: str, + hole_numbers: str, + assist_fun1: str = "", + assist_fun2: str = "", + assist_fun3: str = "", + assist_fun4: str = "", + assist_fun5: str = "", + liquid_method: str = "NormalDispense" + ) -> Dict[str, Any]: + return { + "StepAxis": axis, + "Function": "Imbibing", + "DosageNum": dosage, + "PlateNo": plate_no, + "IsWholePlate": is_whole_plate, + "HoleRow": hole_row, + "HoleCol": hole_col, + "BlendingTimes": blending_times, + "BalanceHeight": balance_height, + "PlateOrHoleNum": plate_or_hole, + "AssistFun1": assist_fun1, + "AssistFun2": assist_fun2, + "AssistFun3": assist_fun3, + "AssistFun4": assist_fun4, + "AssistFun5": assist_fun5, + "HoleNumbers": hole_numbers, + "LiquidDispensingMethod": liquid_method + } + def Tapping( + self, + axis: str, + dosage: int, + plate_no: int, + is_whole_plate: bool, + hole_row: int, + hole_col: int, + blending_times: int, + balance_height: int, + plate_or_hole: str, + hole_numbers: str, + assist_fun1: str = "", + assist_fun2: str = "", + assist_fun3: str = "", + assist_fun4: str = "", + assist_fun5: str = "", + liquid_method: str = "NormalDispense" + ) -> Dict[str, Any]: + return { + "StepAxis": axis, + "Function": "Tapping", + "DosageNum": dosage, + "PlateNo": plate_no, + "IsWholePlate": is_whole_plate, + "HoleRow": hole_row, + "HoleCol": hole_col, + "BlendingTimes": blending_times, + "BalanceHeight": balance_height, + "PlateOrHoleNum": plate_or_hole, + "AssistFun1": assist_fun1, + "AssistFun2": assist_fun2, + "AssistFun3": assist_fun3, + "AssistFun4": assist_fun4, + "AssistFun5": assist_fun5, + "HoleNumbers": hole_numbers, + "LiquidDispensingMethod": liquid_method + } -def Imbibing( - axis: str, - dosage: int, - plate_no: int, - is_whole_plate: bool, - hole_row: int, - hole_col: int, - blending_times: int, - balance_height: int, - plate_or_hole: str, - hole_numbers: str, - assist_fun1: str = "", - assist_fun2: str = "", - assist_fun3: str = "", - assist_fun4: str = "", - assist_fun5: str = "", - liquid_method: str = "NormalDispense" -) -> Dict[str, Any]: - return { - "StepAxis": axis, - "Function": "Imbibing", - "DosageNum": dosage, - "PlateNo": plate_no, - "IsWholePlate": is_whole_plate, - "HoleRow": hole_row, - "HoleCol": hole_col, - "BlendingTimes": blending_times, - "BalanceHeight": balance_height, - "PlateOrHoleNum": plate_or_hole, - "AssistFun1": assist_fun1, - "AssistFun2": assist_fun2, - "AssistFun3": assist_fun3, - "AssistFun4": assist_fun4, - "AssistFun5": assist_fun5, - "HoleNumbers": hole_numbers, - "LiquidDispensingMethod": liquid_method - } + def Blending( + self, + axis: str, + dosage: int, + plate_no: int, + is_whole_plate: bool, + hole_row: int, + hole_col: int, + blending_times: int, + balance_height: int, + plate_or_hole: str, + hole_numbers: str, + assist_fun1: str = "", + assist_fun2: str = "", + assist_fun3: str = "", + assist_fun4: str = "", + assist_fun5: str = "", + liquid_method: str = "NormalDispense" + ) -> Dict[str, Any]: + return { + "StepAxis": axis, + "Function": "Blending", + "DosageNum": dosage, + "PlateNo": plate_no, + "IsWholePlate": is_whole_plate, + "HoleRow": hole_row, + "HoleCol": hole_col, + "BlendingTimes": blending_times, + "BalanceHeight": balance_height, + "PlateOrHoleNum": plate_or_hole, + "AssistFun1": assist_fun1, + "AssistFun2": assist_fun2, + "AssistFun3": assist_fun3, + "AssistFun4": assist_fun4, + "AssistFun5": assist_fun5, + "HoleNumbers": hole_numbers, + "LiquidDispensingMethod": liquid_method + } - -def Tapping( - axis: str, - dosage: int, - plate_no: int, - is_whole_plate: bool, - hole_row: int, - hole_col: int, - blending_times: int, - balance_height: int, - plate_or_hole: str, - hole_numbers: str, - assist_fun1: str = "", - assist_fun2: str = "", - assist_fun3: str = "", - assist_fun4: str = "", - assist_fun5: str = "", - liquid_method: str = "NormalDispense" -) -> Dict[str, Any]: - return { - "StepAxis": axis, - "Function": "Tapping", - "DosageNum": dosage, - "PlateNo": plate_no, - "IsWholePlate": is_whole_plate, - "HoleRow": hole_row, - "HoleCol": hole_col, - "BlendingTimes": blending_times, - "BalanceHeight": balance_height, - "PlateOrHoleNum": plate_or_hole, - "AssistFun1": assist_fun1, - "AssistFun2": assist_fun2, - "AssistFun3": assist_fun3, - "AssistFun4": assist_fun4, - "AssistFun5": assist_fun5, - "HoleNumbers": hole_numbers, - "LiquidDispensingMethod": liquid_method - } - - -def Blending( - axis: str, - dosage: int, - plate_no: int, - is_whole_plate: bool, - hole_row: int, - hole_col: int, - blending_times: int, - balance_height: int, - plate_or_hole: str, - hole_numbers: str, - assist_fun1: str = "", - assist_fun2: str = "", - assist_fun3: str = "", - assist_fun4: str = "", - assist_fun5: str = "", - liquid_method: str = "NormalDispense" -) -> Dict[str, Any]: - return { - "StepAxis": axis, - "Function": "Blending", - "DosageNum": dosage, - "PlateNo": plate_no, - "IsWholePlate": is_whole_plate, - "HoleRow": hole_row, - "HoleCol": hole_col, - "BlendingTimes": blending_times, - "BalanceHeight": balance_height, - "PlateOrHoleNum": plate_or_hole, - "AssistFun1": assist_fun1, - "AssistFun2": assist_fun2, - "AssistFun3": assist_fun3, - "AssistFun4": assist_fun4, - "AssistFun5": assist_fun5, - "HoleNumbers": hole_numbers, - "LiquidDispensingMethod": liquid_method - } - -def UnLoad( - axis: str, - dosage: int, - plate_no: int, - is_whole_plate: bool, - hole_row: int, - hole_col: int, - blending_times: int, - balance_height: int, - plate_or_hole: str, - hole_numbers: str, - assist_fun1: str = "", - assist_fun2: str = "", - assist_fun3: str = "", - assist_fun4: str = "", - assist_fun5: str = "", - liquid_method: str = "NormalDispense" -) -> Dict[str, Any]: - return { - "StepAxis": axis, - "Function": "UnLoad", - "DosageNum": dosage, - "PlateNo": plate_no, - "IsWholePlate": is_whole_plate, - "HoleRow": hole_row, - "HoleCol": hole_col, - "BlendingTimes": blending_times, - "BalanceHeight": balance_height, - "PlateOrHoleNum": plate_or_hole, - "AssistFun1": assist_fun1, - "AssistFun2": assist_fun2, - "AssistFun3": assist_fun3, - "AssistFun4": assist_fun4, - "AssistFun5": assist_fun5, - "HoleNumbers": hole_numbers, - "LiquidDispensingMethod": liquid_method - } + def UnLoad( + self, + axis: str, + dosage: int, + plate_no: int, + is_whole_plate: bool, + hole_row: int, + hole_col: int, + blending_times: int, + balance_height: int, + plate_or_hole: str, + hole_numbers: str, + assist_fun1: str = "", + assist_fun2: str = "", + assist_fun3: str = "", + assist_fun4: str = "", + assist_fun5: str = "", + liquid_method: str = "NormalDispense" + ) -> Dict[str, Any]: + return { + "StepAxis": axis, + "Function": "UnLoad", + "DosageNum": dosage, + "PlateNo": plate_no, + "IsWholePlate": is_whole_plate, + "HoleRow": hole_row, + "HoleCol": hole_col, + "BlendingTimes": blending_times, + "BalanceHeight": balance_height, + "PlateOrHoleNum": plate_or_hole, + "AssistFun1": assist_fun1, + "AssistFun2": assist_fun2, + "AssistFun3": assist_fun3, + "AssistFun4": assist_fun4, + "AssistFun5": assist_fun5, + "HoleNumbers": hole_numbers, + "LiquidDispensingMethod": liquid_method + }