vibesketch.document.tlc¶
A thin-layer chromatography plate drawn from ordinary shapes and text (#91).
The plate is the canvas engine’s own objects: a rectangle for the plate, lines for the baseline and the solvent front, an ellipse per spot and text for the Rf values and lane labels. So the canvas shows it, edits move it, and figures print it like any other drawing; nothing special is stored.
A spot at retention factor Rf sits Rf of the way from the baseline to the solvent front, the definition of Rf as the distance the compound travelled over the distance the solvent travelled (IUPAC Gold Book, “retardation factor in planar chromatography”, doi:10.1351/goldbook.R05351).
Functions
|
|
Classes
|
One lane: its label under the plate and the Rf of each spot in it. |
Exceptions
A plate that cannot be drawn as asked. |
- class vibesketch.document.tlc.Lane(*, label, spots=<factory>)[source]¶
Bases:
BaseModelOne lane: its label under the plate and the Rf of each spot in it.
- Parameters:
label (Annotated[str, StringConstraints(strip_whitespace=None, to_upper=None, to_lower=None, strict=None, min_length=1, max_length=20, pattern=^[^\n\r]+$, ascii_only=None)])
spots (Annotated[list[Annotated[float, FieldInfo(annotation=NoneType, required=True, metadata=[Ge(ge=0), Le(le=1), AllowInfNan(allow_inf_nan=False)])]], MaxLen(max_length=6)])
- model_config = {'extra': 'forbid'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- exception vibesketch.document.tlc.TlcRefused[source]¶
Bases:
ValueErrorA plate that cannot be drawn as asked.