It receives a dataBlockPath dictionary consisting of keys and Path objects to dataBlock vtk files and a dataBlock dictionary which may/may not have the dataBlocks specified already loaded.
Untested pseudo-code:
def smartLoad(dataBlockPathDict, dataBlockDict, force=False):
for key, path in dataBlockPathDict.items():
if force or key not in dataBlockDict or path != dataBlockDict[key].path:
dataBlockDict[key] = loadDataBlock(path)
It receives a
dataBlockPath
dictionary consisting of keys andPath
objects to dataBlock vtk files and adataBlock
dictionary which may/may not have the dataBlocks specified already loaded.Untested pseudo-code: