MCPcopy Create free account
hub / github.com/imrahulr/hat / pickle_data

Function pickle_data

core/utils/utils.py:110–119  ·  view source on GitHub ↗

Write data to pickled file. Arguments: data (Any): data to be written. filename (str): path to the pickled file. mode (str): write mode.

(data, filename, mode='wb')

Source from the content-addressed store, hash-verified

108
109
110def pickle_data(data, filename, mode='wb'):
111 """
112 Write data to pickled file.
113 Arguments:
114 data (Any): data to be written.
115 filename (str): path to the pickled file.
116 mode (str): write mode.
117 """
118 with open(filename, mode) as pkfile:
119 pickle.dump(data, pkfile)
120
121
122def np_load(foldername):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…