bidsbuilder.schema.schema¶
- filter_schema(schema)¶
- Parameters:
schema (Namespace)
- interpret_schema(schema)¶
- Parameters:
schema (Namespace)
- parse_load_schema(schema_path=None, debug=False)¶
Load and Parse the schema into a dictionary.
This function allows the schema, like BIDS itself, to be specified in a hierarchy of directories and files. Filenames (minus extensions) and directory names become keys in the associative array (dict) of entries composed from content of files and entire directories.
- Parameters:
schema_path (str, optional) – Directory containing yaml files or yaml file. If
None, use the default schema packaged withbidsschematools.- Returns:
Schema in dictionary form.
- Return type:
dict
Notes
This function is cached, so it will only be called once per schema path.
- recursive_interpret(rec_n, schema)¶