brainspace.vtk_interface.decorators.wrap_input

brainspace.vtk_interface.decorators.wrap_input(*xargs, skip=False)[source]

Decorator to wrap the arguments of a function.

An object is wrapped only if it is an instance of vtkObject or one of its subclasses.

Parameters:
  • xargs (sequence of int and str) – Positional indices (integers) and keys as strings (for keyword args) to wrap. If none specified, try to wrap all args.
  • skip (bool, optional) – Wrap all arguments except those in xargs. Default is False.

See also

wrap_output, wrap_func, unwrap_input