scitiff.validator.validate_scitiff_metadata_container#

scitiff.validator.validate_scitiff_metadata_container(instance)[source]#

Validate the metadata container.

It validates a dictionary that carries the metadata of a scitiff file. It is because tiff or other image formats can carry other metadata as well, therefore the container schema defines under what name the scitiff metadata should be stored.

Example

A tiff image stack can have metadata like:

{
  "owner": "Sun",
  "date": "2025-01-01",
  "scitiff": {"...": "..."}
}

This whole dictionary validates as scitiff.SciTiffMetadataContainer. It implies that the dictionary under scitiff key is the scitiff metadata, should validate as the scitiff.SciTiffMetadata.

Parameters:

instance (dict) – The metadata container to validate.

Return type:

None