brainprep.utils: Module that implements tools.¶
Module that implements tools.
Classes¶
|
Container object exposing keys as attributes. |
Functions¶
|
Coerce a value into a list when the expected type annotation indicates a list or tuple. |
|
Recursively convert values to pathlib.Path based on expected type annotations. |
|
Return the closest parent directory whose name matches target. |
Return the index of the first stack frame outside the |
|
|
Generate a deterministic identifier and a 5-digit short code from a filename. |
|
Parse BIDS entities and modality from a filename or path with validation. |
|
Print command. |
|
Print deprecated. |
|
Print error. |
|
Print info. |
|
Print result. |
|
Print subtitle. |
|
Print title. |
|
Print warn. |
|
Infers the corresponding JSON sidecar file for a given NIfTI image file. |