gufe_objects_from_shallow_dict
#
- gufe.tokenization.gufe_objects_from_shallow_dict(obj: list | dict | GufeTokenizable) list[GufeTokenizable] #
Find GufeTokenizables within a shallow dict.
This function recursively looks through the list/dict structures encoding GufeTokenizables and returns list of all GufeTokenizables found within those structures, which may be potentially nested.
- Parameters:
obj – The input data structure to recursively traverse. For the initial call of this function, this should be the shallow dict of a GufeTokenizable. Input of a GufeTokenizable will immediately return a base case.
- Returns:
All GufeTokenizables found in the shallow dict representation of a GufeTokenizable.
- Return type:
List[GufeTokenizable]