Expand description
Utility functions: entity matching, file grouping, and case conversion.
Provides helper functions used throughout the crate ecosystem for comparing entity maps, grouping multi-echo/multi-part files, CamelCase↔snake_case conversion, and fuzzy “did you mean?” suggestions.
Functions§
- camel_
to_ snake - Convert a CamelCase string to snake_case.
- collect_
associated_ files - Group BIDSFiles with multiple files per acquisition (multi-echo, multi-part, etc.).
- convert_
json_ keys - Convert CamelCase keys to snake_case recursively in a JSON value.
- get_
close_ matches - Find the closest matches for a string from a list of candidates.
Returns up to
nsuggestions sorted by edit distance. - matches_
entities - Check whether a file’s entities match the target entities.
- snake_
to_ camel - Convert a snake_case string to CamelCase.