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

Method items

Wrapping/Python/vtkmodules/util/data_model.py:93–102  ·  view source on GitHub ↗

Returns a tuple of pairs (name, array)

(self)

Source from the content-addressed store, hash-verified

91 return tuple(vals)
92
93 def items(self):
94 """Returns a tuple of pairs (name, array)"""
95 pairs = []
96 narrays = self.GetNumberOfArrays()
97 for i in range(narrays):
98 arr = self.get_array(i)
99 name = arr.GetName()
100 if name:
101 pairs.append((name, arr))
102 return tuple(pairs)
103
104 def set_array(self, name, narray):
105 """Appends a new array to the dataset attributes."""

Callers 15

LoadPrimitiveMethod · 0.45
addCachedRangeFunction · 0.45
FromJSONMethod · 0.45
load_geojsonFunction · 0.45
iteritemsFunction · 0.45
__call__Method · 0.45
get_configFunction · 0.45
from_jsonFunction · 0.45
json.hppFile · 0.45
iterator_wrapperFunction · 0.45
hashFunction · 0.45

Calls 5

get_arrayMethod · 0.95
rangeClass · 0.50
GetNumberOfArraysMethod · 0.45
GetNameMethod · 0.45
appendMethod · 0.45

Tested by 15

load_geojsonFunction · 0.36
MakeSortedMethod · 0.36
_on_pick_finishedMethod · 0.36
_on_pick_finishedMethod · 0.36
_on_pick_finishedMethod · 0.36
checkRangeForFileMethod · 0.36
testRangeMethod · 0.36
TestAlgorithmParametersFunction · 0.36
VisualStatisticsTestFunction · 0.36