lamindb.curators.SlotsCurator¶
- class lamindb.curators.SlotsCurator(dataset, schema)¶
Bases:
Curator
Curator for a dataset with slots.
- Parameters:
dataset (
Any
) – The dataset to validate & annotate.schema (
Schema
) – ASchema
object that defines the validation constraints.
Added in version 1.3.0.
Attributes¶
- property slots: dict[str, DataFrameCurator]¶
Curator objects by slot.
Added in version 1.1.1.
Methods¶
- save_artifact(*, key=None, description=None, revises=None, run=None)¶
Save an annotated artifact.
- Parameters:
key (
str
|None
, default:None
) – A path-like key to reference artifact in default storage, e.g.,"myfolder/myfile.fcs"
. Artifacts with the same key form a version family.description (
str
|None
, default:None
) – A description.revises (
Artifact
|None
, default:None
) – Previous version of the artifact. Is an alternative way to passingkey
to trigger a new version.run (
Run
|None
, default:None
) – The run that creates the artifact.
- Return type:
- Returns:
A saved artifact record.
- validate()¶
Validate dataset.
- Raises:
lamindb.errors.ValidationError – If validation fails.
- Return type:
None