get_array_association#
- get_array_association(
- mesh: DataSet | _vtk.vtkDataSet | _vtk.vtkTable,
- name: str,
- preference: PointLiteral | CellLiteral | FieldLiteral | RowLiteral = 'cell',
- err: bool = False,
Return the array association.
- Parameters:
- mesh
pyvista.DataSet Dataset to get the array association from.
- name
str The name of the array.
- preference
str, default: “cell” When scalars is specified, this is the preferred array type to search for in the dataset. Must be either
'point','cell', or'field'.- errbool, default:
False Boolean to control whether to throw an error if array is not present.
- mesh
- Returns:
pyvista.core.utilities.arrays.FieldAssociationAssociation of the array. If array is not present and
errisFalse,FieldAssociation.NONEis returned.