PartitionedDataSet.copy#
- PartitionedDataSet.copy(deep: bool = True)[source]#
Return a copy of the PartitionedDataSet.
- Parameters:
- Returns:
pyvista.PartitionedDataSetDeep or shallow copy of the
PartitionedDataSet.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> data = [
... pv.Sphere(center=(2, 0, 0)),
... pv.Cube(center=(0, 2, 0)),
... pv.Cone(),
... ]
>>> partitions = pv.PartitionedDataSet(data)
>>> new_partitions = partitions.copy()
>>> len(new_partitions)
3