MCPcopy
hub / github.com/dmlc/dgl / read_json

Function read_json

tools/distpartitioning/utils.py:79–95  ·  view source on GitHub ↗

Utility method to read a json file schema Parameters: ----------- json_file : string file name for the json schema Returns: -------- dictionary, as serialized in the json_file

(json_file)

Source from the content-addressed store, hash-verified

77
78
79def read_json(json_file):
80 """
81 Utility method to read a json file schema
82
83 Parameters:
84 -----------
85 json_file : string
86 file name for the json schema
87
88 Returns:
89 --------
90 dictionary, as serialized in the json_file
91 """
92 with open(json_file) as schema:
93 val = json.load(schema)
94
95 return val
96
97
98def get_etype_featnames(etype_name, schema_map):

Callers 6

_validate_resultsFunction · 0.90
run_preprocess_dataFunction · 0.90
gen_dist_partitionsFunction · 0.90
post_processFunction · 0.90
run_parmetis_wrapperFunction · 0.90
test_lookup_serviceFunction · 0.90

Calls 1

loadMethod · 0.45

Tested by 1

test_lookup_serviceFunction · 0.72