refactor and add BIOYOND resources tests

This commit is contained in:
Junhan Chang
2025-09-25 08:14:48 +08:00
parent a8419dc0c3
commit 63ab1af45d
11 changed files with 606 additions and 108 deletions

View File

@@ -0,0 +1,54 @@
from unilabos.resources.warehouse import WareHouse
def bioyond_warehouse_1x4x4(name: str) -> WareHouse:
"""创建BioYond 4x1x4仓库"""
return WareHouse(
name=name,
num_items_x=1,
num_items_y=4,
num_items_z=4,
dx=137.0,
dy=96.0,
dz=120.0,
item_dx=10.0,
item_dy=10.0,
item_dz=10.0,
category="warehouse",
)
def bioyond_warehouse_1x4x2(name: str) -> WareHouse:
"""创建BioYond 4x1x2仓库"""
return WareHouse(
name=name,
num_items_x=1,
num_items_y=4,
num_items_z=2,
dx=137.0,
dy=96.0,
dz=120.0,
item_dx=10.0,
item_dy=10.0,
item_dz=10.0,
category="warehouse",
removed_positions=None
)
def bioyond_warehouse_liquid_and_lid_handling(name: str) -> WareHouse:
"""创建BioYond开关盖加液模块台面"""
return WareHouse(
name=name,
num_items_x=2,
num_items_y=5,
num_items_z=1,
dx=137.0,
dy=96.0,
dz=120.0,
item_dx=10.0,
item_dy=10.0,
item_dz=10.0,
category="warehouse",
removed_positions=None
)