bidsbuilder.schema.schema_checking¶
- check_schema(reference, schema, cur_labels=None, add_callbacks=False, tags=None)¶
generator, which when given: a JSON object to check, a schema, Optionally: a list of current labels, a bool to add callbacks, a list of tags to check yields tuples of the format: (“add”/”del”, label, fields) the first variable tells whether to add or remove the given fields
- Return type:
Generator[tuple[str,str,Any],None,None]- Parameters:
reference (DatasetCore)
schema (Namespace)
cur_labels (set)
add_callbacks (bool)
tags (str | list)