MCPcopy Create free account
hub / github.com/Kitware/VTK / serialize

Method serialize

Serialization/Manager/Testing/Python/TestVolume.py:90–101  ·  view source on GitHub ↗
(id_rwi)

Source from the content-addressed store, hash-verified

88 last_mtimes = dict()
89
90 def serialize(id_rwi):
91
92 ser_om.UpdateStatesFromObjects()
93 active_ids = ser_om.GetAllDependencies(id_rwi)
94
95 status = dict(ids=[], mtimes=[], hashes=[])
96 status['ids'] = active_ids
97 status['mtimes'] = {object_id: ser_om.GetObjectAtId(
98 object_id).GetMTime() for object_id in active_ids}
99 status['hashes'] = {blob_hash: ser_om.GetBlob(
100 blob_hash, True) for blob_hash in ser_om.GetBlobHashes(active_ids)}
101 return status
102
103 def deserialize(status: dict):
104

Callers

nothing calls this directly

Calls 6

GetBlobHashesMethod · 0.80
GetAllDependenciesMethod · 0.45
GetMTimeMethod · 0.45
GetObjectAtIdMethod · 0.45
GetBlobMethod · 0.45

Tested by

no test coverage detected