MCPcopy Create free account
hub / github.com/Kitware/VeloView / hasArrayName

Function hasArrayName

Application/Ui/python/lidarview/applogic.py:102–114  ·  view source on GitHub ↗

Returns True if the data has non-zero points and has a point data attribute with the given arrayName.

(sourceProxy, arrayName)

Source from the content-addressed store, hash-verified

100 self.positionPacketInfoLabel = QtGui.QLabel()
101
102def hasArrayName(sourceProxy, arrayName):
103 '''
104 Returns True if the data has non-zero points and has a point data
105 attribute with the given arrayName.
106 '''
107 if not sourceProxy:
108 return False
109
110 array = sourceProxy.PointData.GetArray(arrayName)
111 if array:
112 return True
113
114 return False
115
116
117def openData(filename):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected