keys#

MultiBlock.keys() List[Optional[str]][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']