bidsschematools.utils¶
Utility functions for the bids-specification schema.
Functions
- bidsschematools.utils.configure_logger(lgr)¶
Configuring formatting and stream handler for the logger.
Should not be used when bidsschematools is used as a library.
- Parameters:
lgr (logging.Logger)
- bidsschematools.utils.get_bundled_schema_path()¶
Get the path to the schema directory.
- Returns:
Absolute path to the directory containing schema-related files.
- Return type:
- bidsschematools.utils.get_logger(name=None, level=None)¶
Return a logger to use.
- Parameters:
- Returns:
logger object.
- Return type:
- bidsschematools.utils.set_logger_level(lgr, level)¶
Set the logger level.
- Parameters:
lgr (logging.Logger) – logger object for which to change the level.