remove_tag#
- eoio.utils.dict_tools.remove_tag(test_dict: dict, tag: str, ignore: list | str | None = None, in_list: dict | None = None) None[source]#
Remove specified tag/key from dictionary and move the values up a level in the dictionary.
Note: if other keys are also present at the same level in the dictionary, tag isn’t removed unless other keys are specified as ignore
- Parameters:
test_dict – dictionary in which tags are to be removed
tag – key to remove from dictionary
ignore – list or str of keys to ignore
in_list – dictionary used within function to determine whether the tag is in the nested iterable or not