MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / dump_json

Function dump_json

sat/data_utils.py:26–29  ·  view source on GitHub ↗
(data, json_path)

Source from the content-addressed store, hash-verified

24 return data
25
26def dump_json(data, json_path):
27 with open(json_path, 'w') as f:
28 json.dump(data, f, indent=2)
29 print("Dumped to: {}".format(json_path))
30
31def img_path_list_to_video(img_path_list, out_path='test.mp4', fps=10):
32 writer = imageio.get_writer(out_path, fps=fps)

Callers

nothing calls this directly

Calls 1

printFunction · 0.50

Tested by

no test coverage detected