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

Method DataSet

Wrapping/Python/vtkmodules/numpy_interface/dataset_adapter.py:317–326  ·  view source on GitHub ↗

Get the dataset this array is associated with. The reference to the dataset is held through a vtkWeakReference to ensure it doesn't prevent the dataset from being collected if necessary.

(self)

Source from the content-addressed store, hash-verified

315
316 @property
317 def DataSet(self):
318 """
319 Get the dataset this array is associated with. The reference to the
320 dataset is held through a vtkWeakReference to ensure it doesn't prevent
321 the dataset from being collected if necessary.
322 """
323 if hasattr(self, '_dataset') and self._dataset and self._dataset.Get():
324 return WrapDataObject(self._dataset.Get())
325
326 return None
327
328 @DataSet.setter
329 def DataSet(self, dataset):

Callers 1

Calls 3

WrapDataObjectFunction · 0.85
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected