Update YB resources: add YB_ prefix to models and update deck configurations

This commit is contained in:
dijkstra402
2025-11-09 17:04:52 +08:00
parent 1d77225912
commit 538891fcbe
9 changed files with 66 additions and 43 deletions

View File

@@ -595,7 +595,8 @@ class BioyondCellWorkstation(BioyondWorkstation):
print(f"[create_orders] ⚠️ 第 {idx+1} 行未找到有效物料") print(f"[create_orders] ⚠️ 第 {idx+1} 行未找到有效物料")
orders.append(order_data) orders.append(order_data)
print("================================================")
print("orders:", orders)
print(f"[create_orders] 即将提交订单数量: {len(orders)}") print(f"[create_orders] 即将提交订单数量: {len(orders)}")
response = self._post_lims("/api/lims/order/orders", orders) response = self._post_lims("/api/lims/order/orders", orders)

View File

@@ -237,7 +237,7 @@ MATERIAL_TYPE_MAPPINGS = {
"100ml液体": ("YB_100ml_yeti", "d37166b3-ecaa-481e-bd84-3032b795ba07"), "100ml液体": ("YB_100ml_yeti", "d37166b3-ecaa-481e-bd84-3032b795ba07"),
"": ("YB_ye", "3a190ca1-2add-2b23-f8e1-bbd348b7f790"), "": ("YB_ye", "3a190ca1-2add-2b23-f8e1-bbd348b7f790"),
"高粘液": ("YB_gaonianye", "abe8df30-563d-43d2-85e0-cabec59ddc16"), "高粘液": ("YB_gaonianye", "abe8df30-563d-43d2-85e0-cabec59ddc16"),
"加样头(大)": ("YB_jia_yang_tou_da", "3a190ca0-b2f6-9aeb-8067-547e72c11469"), "加样头(大)": ("YB_jia_yang_tou_da_Carrier", "3a190ca0-b2f6-9aeb-8067-547e72c11469"),
# "加样头(大)板": ("YB_jia_yang_tou_da", "a8e714ae-2a4e-4eb9-9614-e4c140ec3f16"), # "加样头(大)板": ("YB_jia_yang_tou_da", "a8e714ae-2a4e-4eb9-9614-e4c140ec3f16"),
"5ml分液瓶板": ("YB_5ml_fenyepingban", "3a192fa4-007d-ec7b-456e-2a8be7a13f23"), "5ml分液瓶板": ("YB_5ml_fenyepingban", "3a192fa4-007d-ec7b-456e-2a8be7a13f23"),
"5ml分液瓶": ("YB_5ml_fenyeping", "3a192c2a-ebb7-58a1-480d-8b3863bf74f4"), "5ml分液瓶": ("YB_5ml_fenyeping", "3a192c2a-ebb7-58a1-480d-8b3863bf74f4"),

View File

@@ -112,7 +112,7 @@ class CoinCellAssemblyWorkstation(WorkstationBase):
def __init__(self, def __init__(self,
config: dict = None, config: dict = None,
deck=None, deck=None,
address: str = "172.21.33.176", address: str = "172.16.28.102",
port: str = "502", port: str = "502",
debug_mode: bool = False, debug_mode: bool = False,
*args, *args,

View File

@@ -63,3 +63,29 @@ YB_pei_ye_xiao_Bottle:
init_param_schema: {} init_param_schema: {}
registry_type: resource registry_type: resource
version: 1.0.0 version: 1.0.0
YB_jia_yang_tou_da:
category:
- yb3
- YB_bottle
class:
module: unilabos.resources.bioyond.YB_bottles:YB_jia_yang_tou_da
type: pylabrobot
description: YB_jia_yang_tou_da
handles: []
icon: ''
init_param_schema: {}
registry_type: resource
version: 1.0.0
YB_ye_Bottle:
category:
- yb3
- YB_bottle_carriers
class:
module: unilabos.resources.bioyond.YB_bottles:YB_ye_Bottle
type: pylabrobot
description: YB_ye_Bottle
handles: []
icon: ''
init_param_schema: {}
registry_type: resource
version: 1.0.0

View File

@@ -11,19 +11,19 @@ YB_100ml_yeti:
init_param_schema: {} init_param_schema: {}
registry_type: resource registry_type: resource
version: 1.0.0 version: 1.0.0
YB_1BottleCarrier: # YB_1BottleCarrier:
category: # category:
- yb3 # - yb3
- YB_bottle_carriers # - YB_bottle_carriers
class: # class:
module: unilabos.resources.bioyond.YB_bottle_carriers:YB_1BottleCarrier # module: unilabos.resources.bioyond.YB_bottle_carriers:YB_1BottleCarrier
type: pylabrobot # type: pylabrobot
description: YB_1BottleCarrier # description: YB_1BottleCarrier
handles: [] # handles: []
icon: '' # icon: ''
init_param_schema: {} # init_param_schema: {}
registry_type: resource # registry_type: resource
version: 1.0.0 # version: 1.0.0
YB_gaonianye: YB_gaonianye:
category: category:
- yb3 - yb3
@@ -154,19 +154,19 @@ YB_gao_nian_ye_Bottle:
init_param_schema: {} init_param_schema: {}
registry_type: resource registry_type: resource
version: 1.0.0 version: 1.0.0
YB_jia_yang_tou_da: # YB_jia_yang_tou_da:
category: # category:
- yb3 # - yb3
- YB_bottle_carriers # - YB_bottle_carriers
class: # class:
module: unilabos.resources.bioyond.YB_bottles:YB_jia_yang_tou_da # module: unilabos.resources.bioyond.YB_bottles:YB_jia_yang_tou_da
type: pylabrobot # type: pylabrobot
description: YB_jia_yang_tou_da # description: YB_jia_yang_tou_da
handles: [] # handles: []
icon: '' # icon: ''
init_param_schema: {} # init_param_schema: {}
registry_type: resource # registry_type: resource
version: 1.0.0 # version: 1.0.0
YB_jia_yang_tou_da_Carrier: YB_jia_yang_tou_da_Carrier:
category: category:
- yb3 - yb3
@@ -193,14 +193,14 @@ YB_ye_100ml_Bottle:
init_param_schema: {} init_param_schema: {}
registry_type: resource registry_type: resource
version: 1.0.0 version: 1.0.0
YB_ye_Bottle: YB_ye:
category: category:
- yb3 - yb3
- YB_bottle_carriers - YB_bottle_carriers
class: class:
module: unilabos.resources.bioyond.YB_bottles:YB_ye_Bottle module: unilabos.resources.bioyond.YB_bottle_carriers:YB_ye
type: pylabrobot type: pylabrobot
description: YB_ye_Bottle description: YB_ye_Bottle_Carrier
handles: [] handles: []
icon: '' icon: ''
init_param_schema: {} init_param_schema: {}

View File

@@ -206,7 +206,7 @@ def YB_6VialCarrier(name: str) -> BottleCarrier:
return carrier return carrier
# 1瓶载架 - 单个中央位置 # 1瓶载架 - 单个中央位置
def YB_1BottleCarrier(name: str) -> BottleCarrier: def YB_ye(name: str) -> BottleCarrier:
# 载架尺寸 (mm) # 载架尺寸 (mm)
carrier_size_x = 127.8 carrier_size_x = 127.8
@@ -233,7 +233,7 @@ def YB_1BottleCarrier(name: str) -> BottleCarrier:
resource_size_y=beaker_diameter, resource_size_y=beaker_diameter,
name_prefix=name, name_prefix=name,
), ),
model="YB_1BottleCarrier", model="YB_ye",
) )
carrier.num_items_x = 1 carrier.num_items_x = 1
carrier.num_items_y = 1 carrier.num_items_y = 1

View File

@@ -33,7 +33,7 @@ def YB_ye_Bottle(
height=height, height=height,
max_volume=max_volume, max_volume=max_volume,
barcode=barcode, barcode=barcode,
model="Liquid_Bottle", model="YB_ye_Bottle",
) )
"""100ml液体""" """100ml液体"""

View File

@@ -89,11 +89,9 @@ class BIOYOND_YB_Deck(Deck):
"自动堆栈-右": bioyond_warehouse_2x2x1("自动堆栈-右"), "自动堆栈-右": bioyond_warehouse_2x2x1("自动堆栈-右"),
"手动堆栈-左": bioyond_warehouse_3x5x1("手动堆栈-左"), "手动堆栈-左": bioyond_warehouse_3x5x1("手动堆栈-左"),
"手动堆栈-右": bioyond_warehouse_3x5x1("手动堆栈-右"), "手动堆栈-右": bioyond_warehouse_3x5x1("手动堆栈-右"),
"粉末加样头堆栈-左": bioyond_warehouse_10x1x1("粉末加样头堆栈-左"), "粉末加样头堆栈": bioyond_warehouse_20x1x1("粉末加样头堆栈"),
"粉末加样头堆栈-右": bioyond_warehouse_10x1x1("粉末加样头堆栈-右"),
"配液站内试剂仓库": bioyond_warehouse_3x3x1("配液站内试剂仓库"), "配液站内试剂仓库": bioyond_warehouse_3x3x1("配液站内试剂仓库"),
"试剂替换仓库-左": bioyond_warehouse_5x1x1("试剂替换仓库-左"), "试剂替换仓库": bioyond_warehouse_10x1x1("试剂替换仓库"),
"试剂替换仓库-右": bioyond_warehouse_5x1x1("试剂替换仓库-右"),
} }
# warehouse 的位置 # warehouse 的位置
self.warehouse_locations = { self.warehouse_locations = {
@@ -101,11 +99,9 @@ class BIOYOND_YB_Deck(Deck):
"自动堆栈-右": Coordinate(4160.0, 158.0, 0.0), "自动堆栈-右": Coordinate(4160.0, 158.0, 0.0),
"手动堆栈-左": Coordinate(-400.0, 877.0, 0.0), "手动堆栈-左": Coordinate(-400.0, 877.0, 0.0),
"手动堆栈-右": Coordinate(4160.0, 877.0, 0.0), "手动堆栈-右": Coordinate(4160.0, 877.0, 0.0),
"粉末加样头堆栈-左": Coordinate(415.0, 1301.0, 0.0), "粉末加样头堆栈": Coordinate(415.0, 1301.0, 0.0),
"粉末加样头堆栈-右": Coordinate(2200.0, 1304.0, 0.0),
"配液站内试剂仓库": Coordinate(2162.0, 337.0, 0.0), "配液站内试剂仓库": Coordinate(2162.0, 337.0, 0.0),
"试剂替换仓库-左": Coordinate(1173.0, 702.0, 0.0), "试剂替换仓库": Coordinate(1173.0, 702.0, 0.0),
"试剂替换仓库-右": Coordinate(2721.0, 739.0, 0.0),
} }
for warehouse_name, warehouse in self.warehouses.items(): for warehouse_name, warehouse in self.warehouses.items():