flatDictKeySet

outputting.flatDictKeySet(store, selectKeys=None)[source]

Generates a dictionary of keys and identifiers for the new dictionary, including only the keys in the keys list. Any keys with lists will be split into a set of keys, one for each element in the original key.

These are named <key><location>

Parameters:
  • store (list of dicts) – The dictionaries would be expected to have many of the same keys. Any dictionary keys containing lists in the input have been split into multiple numbered keys
  • selectKeys (list of strings, optional) – The keys whose data will be included in the return dictionary. Default None, which results in all keys being returned
Returns:

keySet – The dictionary of keys to be extracted

Return type:

OrderedDict with values of OrderedDict, list or None

See also

reframeListDicts(), newFlatDict()