neuron_morphology.feature_extractor.utilities module¶
A collection of miscellaneous tools used by the feature extractor
-
neuron_morphology.feature_extractor.utilities.unnest(inputs: Dict[str, Any], _prefix='') → Dict[str, Any][source]¶ Convert nested dictionaries (with string keys) to a dot-notation flat dictionary.
inputs: The dictionary to unnest. Must have all string keys _prefix : Used during recursion to build up a dot-notation prefix. Don’t
argue this yourself!Returns: - a flattened dictionary