MCPcopy Index your code
hub / github.com/Persper/code-analytics / save

Method save

persper/graphs/analyzer.py:260–262  ·  view source on GitHub ↗
(self, fname)

Source from the content-addressed store, hash-verified

258 return sorted(loc.items(), key=lambda x: x[1], reverse=True)
259
260 def save(self, fname):
261 with open(fname, 'wb+') as f:
262 pickle.dump(self, f)
263
264 def autosave(self, phase, idx, checkpoint_interval):
265 if idx % checkpoint_interval == 0:

Callers 6

autosaveMethod · 0.95
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
test_saveFunction · 0.45
test_saveFunction · 0.45

Calls 1

dumpMethod · 0.80

Tested by 2

test_saveFunction · 0.36
test_saveFunction · 0.36