From 4e82f62327dfc546fe79f21acbe3bc59e10b23b4 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:57:27 +0800 Subject: [PATCH] fix prcxi check --- unilabos/devices/liquid_handling/prcxi/prcxi.py | 8 ++++---- unilabos/ros/nodes/presets/host_node.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/unilabos/devices/liquid_handling/prcxi/prcxi.py b/unilabos/devices/liquid_handling/prcxi/prcxi.py index f34583fe..47b213ad 100644 --- a/unilabos/devices/liquid_handling/prcxi/prcxi.py +++ b/unilabos/devices/liquid_handling/prcxi/prcxi.py @@ -634,7 +634,7 @@ class PRCXI9300Handler(LiquidHandlerAbstract): def __init__( self, - deck: Deck, + deck: PRCXI9300Deck, host: str, port: int, timeout: float, @@ -648,11 +648,11 @@ class PRCXI9300Handler(LiquidHandlerAbstract): is_9320=False, ): tablets_info = [] - count = 0 - for child in deck.children: + for site_id in range(len(deck.sites)): + child = deck._get_site_resource(site_id) # 如果放其他类型的物料,是不可以的 if hasattr(child, "_unilabos_state") and "Material" in child._unilabos_state: - number = int(child.name.replace("T", "")) + number = site_id + 1 tablets_info.append( WorkTablets( Number=number, Code=f"T{number}", Material=child._unilabos_state["Material"] diff --git a/unilabos/ros/nodes/presets/host_node.py b/unilabos/ros/nodes/presets/host_node.py index dd10bfd1..8ab0a624 100644 --- a/unilabos/ros/nodes/presets/host_node.py +++ b/unilabos/ros/nodes/presets/host_node.py @@ -65,13 +65,13 @@ class DeviceActionStatus: class TestResourceReturn(TypedDict): resources: List[List[ResourceDict]] devices: List[Dict[str, Any]] - unilabos_samples: List[LabSample] + # unilabos_samples: List[LabSample] class CreateResourceReturn(TypedDict): created_resource_tree: List[List[ResourceDict]] liquid_input_resource_tree: List[Dict[str, Any]] - unilabos_samples: List[LabSample] + # unilabos_samples: List[LabSample] class TestLatencyReturn(TypedDict):