Returns True if the data has non-zero points and has a point data attribute with the given arrayName.
(sourceProxy, arrayName)
| 100 | self.positionPacketInfoLabel = QtGui.QLabel() |
| 101 | |
| 102 | def 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 | |
| 117 | def openData(filename): |
no outgoing calls
no test coverage detected