kithairon.Labware#

aoeu

class kithairon.Labware(plates: list[PlateInfo])#

Bases: object

A collection of plate type information.

__init__(plates: list[PlateInfo])#

Methods

__init__(plates)

add(plate)

from_file(path)

from_raw(raw)

keys()

make_default()

to_elwx()

to_file(path, **kwargs)

Write an ELWX labware file.

to_polars()

to_xml(**kwargs)

Generate an ELWX XML string.

to_file(path: str | PathLike[str], **kwargs: dict[str, Any]) None#

Write an ELWX labware file.

Parameters:
pathstr | os.PathLike[str]

path to write to

to_xml(**kwargs: dict[str, Any]) str | bytes#

Generate an ELWX XML string.

Parameters:
**kwargs

passed to pydantic_xml.BaseXmlModel.to_xml

Returns:
str | bytes

XML string