MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / savecache

Function savecache

deeplabcut/benchmark/__init__.py:105–107  ·  view source on GitHub ↗
(results: ResultCollection)

Source from the content-addressed store, hash-verified

103
104
105def savecache(results: ResultCollection):
106 with open(CACHE, "w") as fh:
107 json.dump(results.todicts(), fh, indent=2)
108
109
110def loadcache(cache=CACHE, on_missing: Literal["raise", "ignore"] = "ignore") -> ResultCollection:

Callers

nothing calls this directly

Calls 1

todictsMethod · 0.80

Tested by

no test coverage detected