MMMIdataSchema.validate#

MMMIdataSchema.validate(idata)[source]#

Validate DataTree against schema.

Parameters:
idataxr.DataTree

DataTree to validate

Returns:
list of str

All validation errors (empty if valid)

Examples

>>> errors = schema.validate(mmm.idata)
>>> if errors:
...     for error in errors:
...         print(f"  - {error}")