Source code for phenotypic.schema._metadata
"""Framework metadata bookkeeping labels for the PhenoTypic module."""
from ._measurement_info import Entry, MeasurementInfo
[docs]
class METADATA(MeasurementInfo):
"""Framework-populated image metadata keys.
These labels are set automatically by the image pipeline (not by the user) and
name the bookkeeping entries on the ``image.metadata`` accessor. Members render
as ``Metadata_<Label>`` (e.g. ``Metadata_ImageName``) so they share the
``Metadata_`` namespace with the user-facing experimental tags in
:mod:`phenotypic.schema` (see :class:`SAMPLE_METADATA` and siblings).
For the standardized *biological/experimental* vocabulary users supply via the
``--metadata`` CSV, use the experimental-tag enums instead.
"""
UUID = Entry("UUID", "The unique identifier of the image.")
IMAGE_NAME = Entry("ImageName", "The name of the image.")
PARENT_IMAGE_NAME = Entry("ParentImageName", "The name of the parent image.")
PARENT_UUID = Entry("ParentUUID", "The UUID of the parent image.")
IMFORMAT = Entry("ImageFormat", "The format of the image.")
IMAGE_TYPE = Entry("ImageType", "The type of the image.")
BIT_DEPTH = Entry("BitDepth", "The bit depth of the image.")
SUFFIX = Entry(
"FileSuffix",
"The file suffix of the original file the image was imported from",
)