MCPcopy Create free account
hub / github.com/CHENGY12/PLOT / read_json

Function read_json

plot-adapter/datasets/utils.py:15–19  ·  view source on GitHub ↗

Read json file from a path.

(fpath)

Source from the content-addressed store, hash-verified

13
14
15def read_json(fpath):
16 """Read json file from a path."""
17 with open(fpath, 'r') as f:
18 obj = json.load(f)
19 return obj
20
21
22def write_json(obj, fpath):

Callers 6

read_splitMethod · 0.90
read_dataMethod · 0.90
read_splitMethod · 0.90
read_dataMethod · 0.90
read_splitMethod · 0.85
read_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected