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

Function InitIndex

Web/Python/vtkmodules/web/vtkjs_helper.py:122–131  ·  view source on GitHub ↗
(sourcePath, destObj)

Source from the content-addressed store, hash-verified

120 return self[name]
121
122 def InitIndex(sourcePath, destObj):
123 with open(sourcePath, "r") as sourceFile:
124 sourceData = sourceFile.read()
125 sourceObj = json.loads(sourceData)
126 for key in sourceObj:
127 destObj[key] = sourceObj[key]
128 # remove vtkHttpDataSetReader information
129 for obj in destObj["scene"]:
130 obj.pop(obj["type"])
131 obj.pop("type")
132
133 def getUrlToNameDictionary(indexObj):
134 urls = {}

Callers 1

zipAllTimeStepsFunction · 0.85

Calls 2

popMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected