utilities
Utility functions used by bamboost.
flatten_dict
flatten_dict (dictionary, parent_key='', seperator='.')
None
Parameters:
- dictionary :
Any
- parent_key :
Any
- seperator :
Any
Returns:
<class 'inspect._empty'>
unflatten_dict
unflatten_dict (dictionary, seperator='.')
None
Parameters:
- dictionary :
Any
- seperator :
Any
Returns:
<class 'inspect._empty'>
tree
tree (
dir_path: pathlib.Path,
level: int = -1,
limit_to_directories: bool = False,
length_limit: int = 1000
)
Given a directory Path object print a visual tree structure
Parameters:
- dir_path :
<class 'pathlib.Path'>
- level :
<class 'int'>
- limit_to_directories :
<class 'bool'>
- length_limit :
<class 'int'>
Returns:
<class 'inspect._empty'>
h5_tree
h5_tree (val, pre='')
None
Parameters:
- val :
Any
- pre :
Any
Returns:
<class 'inspect._empty'>