MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / jload

Function jload

train/train.py:34–39  ·  view source on GitHub ↗

Load a .json file into a dictionary.

(f, mode="r")

Source from the content-addressed store, hash-verified

32 return f
33
34def jload(f, mode="r"):
35 """Load a .json file into a dictionary."""
36 f = _make_r_io_base(f, mode)
37 jdict = json.load(f)
38 f.close()
39 return jdict
40
41
42IGNORE_INDEX = -100

Callers

nothing calls this directly

Calls 2

_make_r_io_baseFunction · 0.85
loadMethod · 0.80

Tested by

no test coverage detected