Schema#
Metadata validation and template generation.
- quantem.data.validate(meta: dict) list[str][source]#
Validate a metadata dict against the schema.
Returns a list of error strings (empty if valid).
- quantem.data.make_template(name: str, technique: str, shape: list[int] | tuple[int, ...], dtype: str = 'float32', description: str = '', contributor: str = '', license: str = 'CC-BY-4.0') dict[source]#
Create a metadata dict with required fields pre-filled.
- quantem.data.schema.VALID_TECHNIQUES = ['4dstem', 'hrtem', 'eels', 'tomo', 'diffraction', 'complex', 'image']#
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.