MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / to_pickle

Method to_pickle

deeplabcut/core/inferenceutils.py:873–880  ·  view source on GitHub ↗
(self, output_name)

Source from the content-addressed store, hash-verified

871 df.to_hdf(output_name, key="ass")
872
873 def to_pickle(self, output_name):
874 data = dict()
875 for ind, assemblies in self.assemblies.items():
876 data[ind] = [ass.data for ass in assemblies]
877 if self.unique:
878 data["single"] = self.unique
879 with open(output_name, "wb") as file:
880 pickle.dump(data, file, pickle.HIGHEST_PROTOCOL)
881
882
883@dataclass

Callers 4

test_assemblerFunction · 0.95

Calls 1

itemsMethod · 0.80

Tested by 2

test_assemblerFunction · 0.76