pyvista.MultiBlock.pop#
- MultiBlock.pop( ) MultiBlock | DataSet | None [source]#
Pop off a block at the specified index.
- Parameters:
- Returns:
pyvista.DataSet
orpyvista.MultiBlock
Dataset from the given index that was removed.
Examples
Pop the
"cube"
multiblock.>>> import pyvista as pv >>> data = { ... "cube": pv.Cube(), ... "sphere": pv.Sphere(center=(2, 2, 0)), ... } >>> blocks = pv.MultiBlock(data) >>> blocks.keys() ['cube', 'sphere'] >>> cube = blocks.pop("cube") >>> blocks.keys() ['sphere']