eelbrain.NDVar.get_dims

NDVar.get_dims(names=None, first=None, last=None)

Return a tuple with the requested Dimension objects

Parameters
  • names (Sequence[Optional[str]]) – Names of the dimension objects. If None is inserted in place of names, these dimensions are inferred.

  • first (Union[str, Sequence[Optional[str]]]) – Instead of names, specify a constraint on the initial dimension(s) only.

  • last (Union[str, Sequence[Optional[str]]]) – Instead of names, specify a constraint on the last dimension(s) only.

Returns

Dimension objects in the same order as in names.

Return type

dims