mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-04 05:15:10 +00:00
171 lines
4.3 KiB
Python
171 lines
4.3 KiB
Python
from unilabos.resources.itemized_carrier import Bottle
|
||
|
||
|
||
def BIOYOND_PolymerStation_Solid_Stock(
|
||
name: str,
|
||
diameter: float = 20.0,
|
||
height: float = 100.0,
|
||
max_volume: float = 30000.0, # 30mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""创建粉末瓶"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Solid_Stock",
|
||
)
|
||
|
||
|
||
def BIOYOND_PolymerStation_Solid_Vial(
|
||
name: str,
|
||
diameter: float = 25.0,
|
||
height: float = 60.0,
|
||
max_volume: float = 30000.0, # 30mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""创建粉末瓶"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Solid_Vial",
|
||
)
|
||
|
||
|
||
def BIOYOND_PolymerStation_Liquid_Vial(
|
||
name: str,
|
||
diameter: float = 25.0,
|
||
height: float = 60.0,
|
||
max_volume: float = 30000.0, # 30mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""创建滴定液瓶"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Liquid_Vial",
|
||
)
|
||
|
||
|
||
def BIOYOND_PolymerStation_Solution_Beaker(
|
||
name: str,
|
||
diameter: float = 60.0,
|
||
height: float = 70.0,
|
||
max_volume: float = 200000.0, # 200mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""创建溶液烧杯"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Solution_Beaker",
|
||
)
|
||
|
||
|
||
def BIOYOND_PolymerStation_Reagent_Bottle(
|
||
name: str,
|
||
diameter: float = 70.0,
|
||
height: float = 120.0,
|
||
max_volume: float = 500000.0, # 500mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""创建试剂瓶"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Reagent_Bottle",
|
||
)
|
||
|
||
|
||
def BIOYOND_PolymerStation_Reactor(
|
||
name: str,
|
||
diameter: float = 30.0,
|
||
height: float = 80.0,
|
||
max_volume: float = 50000.0, # 50mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""创建反应器"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Reactor",
|
||
)
|
||
|
||
|
||
def BIOYOND_PolymerStation_TipBox(
|
||
name: str,
|
||
size_x: float = 127.76, # 枪头盒宽度
|
||
size_y: float = 85.48, # 枪头盒长度
|
||
size_z: float = 100.0, # 枪头盒高度
|
||
barcode: str = None,
|
||
):
|
||
"""创建4×6枪头盒 (24个枪头) - 使用 BottleCarrier 结构
|
||
|
||
注意:此函数已弃用,请使用 bottle_carriers.py 中的版本
|
||
|
||
Args:
|
||
name: 枪头盒名称
|
||
size_x: 枪头盒宽度 (mm)
|
||
size_y: 枪头盒长度 (mm)
|
||
size_z: 枪头盒高度 (mm)
|
||
barcode: 条形码
|
||
|
||
Returns:
|
||
BottleCarrier: 包含24个枪头孔位的枪头盒载架
|
||
"""
|
||
# 重定向到 bottle_carriers.py 中的实现
|
||
from unilabos.resources.bioyond.bottle_carriers import BIOYOND_PolymerStation_TipBox as TipBox_Carrier
|
||
return TipBox_Carrier(name=name, size_x=size_x, size_y=size_y, size_z=size_z, barcode=barcode)
|
||
|
||
|
||
def BIOYOND_PolymerStation_Flask(
|
||
name: str,
|
||
diameter: float = 60.0,
|
||
height: float = 70.0,
|
||
max_volume: float = 200000.0, # 200mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""聚合站-烧杯(统一 Flask 资源到 PolymerStation)"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Flask",
|
||
)
|
||
|
||
def BIOYOND_PolymerStation_Measurement_Vial(
|
||
name: str,
|
||
diameter: float = 25.0,
|
||
height: float = 60.0,
|
||
max_volume: float = 20000.0, # 20mL
|
||
barcode: str = None,
|
||
) -> Bottle:
|
||
"""创建测量小瓶"""
|
||
return Bottle(
|
||
name=name,
|
||
diameter=diameter,
|
||
height=height,
|
||
max_volume=max_volume,
|
||
barcode=barcode,
|
||
model="BIOYOND_PolymerStation_Measurement_Vial",
|
||
)
|