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

Function hashDataArray

Web/Python/vtkmodules/web/__init__.py:44–47  ·  view source on GitHub ↗
(dataArray)

Source from the content-addressed store, hash-verified

42
43
44def hashDataArray(dataArray):
45 hashedBit = hashlib.md5(memoryview(dataArray)).hexdigest()
46 typeCode = arrayTypesMapping[dataArray.GetDataType()]
47 return "%s_%d%s" % (hashedBit, dataArray.GetDataSize(), typeCode)
48
49
50def getJSArrayType(dataArray):

Callers 1

digestFunction · 0.90

Calls 2

GetDataSizeMethod · 0.80
GetDataTypeMethod · 0.45

Tested by

no test coverage detected