tamaki.mes.backup.compare.flattenLocations
Description
Lifts each location's nested propertyValues into a new top-level locationPropertyValues list,
adding the owning location's path (as locationPath) to every property value. The entityLists
dictionary is mutated in place. Does nothing if there are no locations.
Syntax
tamaki.mes.backup.compare.flattenLocations(entityLists)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
entityLists | Dict | False | A mapping of entity type to a list of entity dictionaries. |
Returns
This function does not return a value. It mutates entityLists in place, adding a
locationPropertyValues list.
Code Examples
tamaki.mes.backup.compare.flattenLocations(data)
print(data["locationPropertyValues"])