MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / write_json_file

Function write_json_file

rq/text2emb/utils.py:348–351  ·  view source on GitHub ↗
(dic, file)

Source from the content-addressed store, hash-verified

346 return new_inters
347
348def write_json_file(dic, file):
349 print('Writing json file: ',file)
350 with open(file, 'w') as fp:
351 json.dump(dic, fp, indent=4)
352
353def write_remap_index(unit2index, file):
354 print('Writing remap file: ',file)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected