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

Method __getitem__

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

Implements the [] operator. Accepts an array name or index.

(self, idx)

Source from the content-addressed store, hash-verified

40 self.dataset = None
41
42 def __getitem__(self, idx):
43 """Implements the [] operator. Accepts an array name or index."""
44 return self.get_array(idx)
45
46 def __setitem__(self, name, value):
47 """Implements the [] operator. Accepts an array name or index."""

Callers

nothing calls this directly

Calls 1

get_arrayMethod · 0.95

Tested by

no test coverage detected