pyvista.PartitionedDataSet#
- class PartitionedDataSet(*args, **kwargs)[source]#
Wrapper for the vtkPartitionedDataSet class.
DataSet which composite dataset to encapsulates a dataset consisting of partitions.
Examples
>>> import pyvista as pv >>> data = [ ... pv.Sphere(center=(2, 0, 0)), ... pv.Cube(center=(0, 2, 0)), ... pv.Cone(), ... ] >>> partitions = pv.PartitionedDataSet(data) >>> len(partitions) 3
Methods
PartitionedDataSet.append
(dataset)Add a data set to the next partition index.
PartitionedDataSet.copy
([deep])Return a copy of the PartitionedDataSet.
PartitionedDataSet.copy_meta_from
(ido, deep)Copy pyvista meta data onto this object from another object.
PartitionedDataSet.get_data_range
(name, ...)Get the non-NaN min and max of a named array.
PartitionedDataSet.insert
(index, dataset)Insert data before index.
PartitionedDataSet.pop
([index])Pop off a partition at the specified index are not supported.
Ensure that all nested data structures are wrapped as PyVista datasets.
Attributes
Return
True
if there are no partitions.Return the number of partitions.