MCPcopy Create free account
hub / github.com/adobe/Marinus / reformat_data

Function reformat_data

python3_cron_scripts/create_tpd_graphs.py:148–154  ·  view source on GitHub ↗

Reformat the data object and add the docs properties for d3.js compliance

(data, tpd, groups)

Source from the content-addressed store, hash-verified

146
147
148def reformat_data(data, tpd, groups):
149 """
150 Reformat the data object and add the docs properties for d3.js compliance
151 """
152 for i in range(0, len(data["nodes"])):
153 data["nodes"][i]["name"] = data["nodes"][i]["id"]
154 data["nodes"][i]["group"] = groups[data["nodes"][i]["type"]]
155
156
157def get_tpds(mongo_connector):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected