keys

MultiBlock.keys() List[Optional[str]]

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']