pyvista.MultiBlock.keys#
- MultiBlock.keys() list[str | None] [source]#
Get all the block names in the dataset.
- Returns:
list
List of block names.
Examples
>>> import pyvista as pv >>> data = { ... 'cube': pv.Cube(), ... 'sphere': pv.Sphere(center=(2, 2, 0)), ... } >>> blocks = pv.MultiBlock(data) >>> blocks.keys() ['cube', 'sphere']