From 77921e95c0de6eb4932967b53c65e8e1f12d899d Mon Sep 17 00:00:00 2001 From: caila-marashaj Date: Thu, 8 Aug 2024 14:59:39 -0400 Subject: [PATCH] first pass labware defs --- .../labware/labware_definition.py | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/shared-data/python/opentrons_shared_data/labware/labware_definition.py b/shared-data/python/opentrons_shared_data/labware/labware_definition.py index 1b2e68040de..188571cadc7 100644 --- a/shared-data/python/opentrons_shared_data/labware/labware_definition.py +++ b/shared-data/python/opentrons_shared_data/labware/labware_definition.py @@ -105,6 +105,33 @@ class DisplayCategory(str, Enum): other = "other" +class CircleArea(BaseModel): + radius: float + + +class RectangleArea(BaseModel): + length: float + width: float + + +class Hemisphere(BaseModel): + radius: float + depth: float + + +CrossSectionShape = Union[CircleArea, RectangleArea] + + +class CrossSection(BaseModel): + shape: CrossSectionShape + height: float + + +class InnerLabwareGeometry(BaseModel): + cross_sections: List[CrossSection] + hemisphere: Optional[Hemisphere] + + class LabwareRole(str, Enum): labware = "labware" fixture = "fixture"