Shape
A 3D solid shape with a certain height that can be filled with liquid.
- Decorators
- dataclasses.dataclass
Methods
__post_init__(self) -> None
volume_for_height(self, height : Number) -> decimal.Decimal
Calculates the volume within this shape for a particular height.
Parameters
- Name
self
- Type
- Default
- Description
- Name
height
- Type
- Number
- Default
- Description
The height within this shape.
Response
- Type
- decimal.Decimal
- Description
The inner shape's volume in µl with the given height.
height_for_volume(self, volume : Number) -> decimal.Decimal
Calculates the height within this shape for a particular volume.
Parameters
- Name
self
- Type
- Default
- Description
- Name
volume
- Type
- Number
- Default
- Description
The volume in this shape.
Response
- Type
- decimal.Decimal
- Description
The inner shape's height in mm with the given volume.
Attributes
- Name
height
- Type
- Decimal
- Value
= Decimal()
- Description
- Name
max_fitting_volume
- Type
- decimal.Decimal
- Value
= None
- Description
The maximum volume that fits into this shape.