fix prcxi check

This commit is contained in:
Xuwznln
2026-03-10 15:57:27 +08:00
parent 95d3456214
commit 4e82f62327
2 changed files with 6 additions and 6 deletions

View File

@@ -634,7 +634,7 @@ class PRCXI9300Handler(LiquidHandlerAbstract):
def __init__( def __init__(
self, self,
deck: Deck, deck: PRCXI9300Deck,
host: str, host: str,
port: int, port: int,
timeout: float, timeout: float,
@@ -648,11 +648,11 @@ class PRCXI9300Handler(LiquidHandlerAbstract):
is_9320=False, is_9320=False,
): ):
tablets_info = [] tablets_info = []
count = 0 for site_id in range(len(deck.sites)):
for child in deck.children: child = deck._get_site_resource(site_id)
# 如果放其他类型的物料,是不可以的 # 如果放其他类型的物料,是不可以的
if hasattr(child, "_unilabos_state") and "Material" in child._unilabos_state: if hasattr(child, "_unilabos_state") and "Material" in child._unilabos_state:
number = int(child.name.replace("T", "")) number = site_id + 1
tablets_info.append( tablets_info.append(
WorkTablets( WorkTablets(
Number=number, Code=f"T{number}", Material=child._unilabos_state["Material"] Number=number, Code=f"T{number}", Material=child._unilabos_state["Material"]

View File

@@ -65,13 +65,13 @@ class DeviceActionStatus:
class TestResourceReturn(TypedDict): class TestResourceReturn(TypedDict):
resources: List[List[ResourceDict]] resources: List[List[ResourceDict]]
devices: List[Dict[str, Any]] devices: List[Dict[str, Any]]
unilabos_samples: List[LabSample] # unilabos_samples: List[LabSample]
class CreateResourceReturn(TypedDict): class CreateResourceReturn(TypedDict):
created_resource_tree: List[List[ResourceDict]] created_resource_tree: List[List[ResourceDict]]
liquid_input_resource_tree: List[Dict[str, Any]] liquid_input_resource_tree: List[Dict[str, Any]]
unilabos_samples: List[LabSample] # unilabos_samples: List[LabSample]
class TestLatencyReturn(TypedDict): class TestLatencyReturn(TypedDict):