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

Function _make_r_io_base

train/train.py:29–32  ·  view source on GitHub ↗
(f, mode: str)

Source from the content-addressed store, hash-verified

27
28
29def _make_r_io_base(f, mode: str):
30 if not isinstance(f, io.IOBase):
31 f = open(f, mode=mode)
32 return f
33
34def jload(f, mode="r"):
35 """Load a .json file into a dictionary."""

Callers 1

jloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected