mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
* coin_cell_station draft * refactor: rename "station_resource" to "deck" * add standardized BIOYOND resources: bottle_carrier, bottle * refactor and add BIOYOND resources tests * add BIOYOND deck assignment and pass all tests * fix: update resource with correct structure; remove deprecated liquid_handler set_group action * feat: 将新威电池测试系统驱动与配置文件并入 workstation_dev_YB2 (#92) * feat: 新威电池测试系统驱动与注册文件 * feat: bring neware driver & battery.json into workstation_dev_YB2 * add bioyond studio draft * bioyond station with communication init and resource sync * fix bioyond station and registry * create/update resources with POST/PUT for big amount/ small amount data * refactor: add itemized_carrier instead of carrier consists of ResourceHolder * create warehouse by factory func * update bioyond launch json * add child_size for itemized_carrier * fix bioyond resource io --------- Co-authored-by: h840473807 <47357934+h840473807@users.noreply.github.com> Co-authored-by: Xie Qiming <97236197+Andy6M@users.noreply.github.com>
54 lines
1.2 KiB
Python
54 lines
1.2 KiB
Python
from unilabos.resources.warehouse import WareHouse, warehouse_factory
|
|
|
|
|
|
def bioyond_warehouse_1x4x4(name: str) -> WareHouse:
|
|
"""创建BioYond 4x1x4仓库"""
|
|
return warehouse_factory(
|
|
name=name,
|
|
num_items_x=1,
|
|
num_items_y=4,
|
|
num_items_z=4,
|
|
dx=10.0,
|
|
dy=10.0,
|
|
dz=10.0,
|
|
item_dx=137.0,
|
|
item_dy=96.0,
|
|
item_dz=120.0,
|
|
category="warehouse",
|
|
)
|
|
|
|
|
|
def bioyond_warehouse_1x4x2(name: str) -> WareHouse:
|
|
"""创建BioYond 4x1x2仓库"""
|
|
return warehouse_factory(
|
|
name=name,
|
|
num_items_x=1,
|
|
num_items_y=4,
|
|
num_items_z=2,
|
|
dx=10.0,
|
|
dy=10.0,
|
|
dz=10.0,
|
|
item_dx=137.0,
|
|
item_dy=96.0,
|
|
item_dz=120.0,
|
|
category="warehouse",
|
|
removed_positions=None
|
|
)
|
|
|
|
|
|
def bioyond_warehouse_liquid_and_lid_handling(name: str) -> WareHouse:
|
|
"""创建BioYond开关盖加液模块台面"""
|
|
return warehouse_factory(
|
|
name=name,
|
|
num_items_x=2,
|
|
num_items_y=5,
|
|
num_items_z=1,
|
|
dx=10.0,
|
|
dy=10.0,
|
|
dz=10.0,
|
|
item_dx=137.0,
|
|
item_dy=96.0,
|
|
item_dz=120.0,
|
|
category="warehouse",
|
|
removed_positions=None
|
|
) |