Source code for phenotypic.schema._curation

"""Column names for GUI curation state written into derived frames."""

from __future__ import annotations

from ._measurement_info import Entry, MeasurementInfo


[docs] class CURATION(MeasurementInfo): """Curation-state columns attached to derived measurement frames. ``Curation_Category`` carries the :class:`ErrorCategory` bare label (or a custom category token) for each removed object in the per-category error parquets. """
[docs] @classmethod def category(cls) -> str: return "Curation"
# Member name avoids ``CATEGORY`` (a reserved ``MeasurementInfo`` property); # the label stays "Category" so the column is ``Curation_Category``. ERROR_CATEGORY = Entry( "Category", "Error-category token assigned to a removed/triaged object.", )