mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-17 13:01:12 +00:00
modify bioyond/plr converter, bioyond resource registry, and tests
This commit is contained in:
@@ -5,15 +5,19 @@ Automated Liquid Handling Station Resource Classes - Simplified Version
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Dict, Optional
|
||||
from typing import Dict, List, Optional, TypeVar, Union, Sequence, Tuple
|
||||
|
||||
import pylabrobot
|
||||
|
||||
from pylabrobot.resources.coordinate import Coordinate
|
||||
from pylabrobot.resources.container import Container
|
||||
from pylabrobot.resources.resource_holder import ResourceHolder
|
||||
from pylabrobot.resources import Resource as ResourcePLR
|
||||
from pylabrobot.resources import Well, ResourceHolder
|
||||
from pylabrobot.resources.coordinate import Coordinate
|
||||
|
||||
|
||||
class Bottle(Container):
|
||||
LETTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
|
||||
|
||||
class Bottle(Well):
|
||||
"""瓶子类 - 简化版,不追踪瓶盖"""
|
||||
|
||||
def __init__(
|
||||
@@ -37,6 +41,8 @@ class Bottle(Container):
|
||||
max_volume=max_volume,
|
||||
category=category,
|
||||
model=model,
|
||||
bottom_type="flat",
|
||||
cross_section_type="circle"
|
||||
)
|
||||
self.diameter = diameter
|
||||
self.height = height
|
||||
@@ -50,13 +56,6 @@ class Bottle(Container):
|
||||
"barcode": self.barcode,
|
||||
}
|
||||
|
||||
|
||||
from string import ascii_uppercase as LETTERS
|
||||
from typing import Dict, List, Optional, Type, TypeVar, Union, Sequence, Tuple
|
||||
|
||||
import pylabrobot
|
||||
from pylabrobot.resources.resource_holder import ResourceHolder
|
||||
|
||||
T = TypeVar("T", bound=ResourceHolder)
|
||||
|
||||
S = TypeVar("S", bound=ResourceHolder)
|
||||
|
||||
Reference in New Issue
Block a user