brainspace.vtk_interface.decorators.append_vtk¶
-
brainspace.vtk_interface.decorators.
append_vtk
(to='point')[source]¶ Decorator to append data to surface.
Parameters: to ({'point', 'cell', 'field'}, optional) – Append data to PointData, CellData or FieldData. Default is ‘point’. Returns: wrapped_func (callable) – Wrapped function. Notes
All functions using this decorator must:
- Return a ndarray. The size of the array must be consistent with
the data it will be appended to (e.g., number of points if
to == 'point'
), except for FieldData. - Have the following 2 key-value arguments:
- append (bool, optional)
- If True, append data to surface. Otherwise, return data.
- key (str, optional)
- Array names of data.
See also
- Return a ndarray. The size of the array must be consistent with
the data it will be appended to (e.g., number of points if