eelbrain.NDVar.get_dims
- NDVar.get_dims(names=None, first=None, last=None)
Return a tuple with the requested Dimension objects
- Parameters:
names (Sequence[str | None]) – Names of the dimension objects. If
None
is inserted in place of names, these dimensions are inferred.first (str | Sequence[str | None]) – Instead of
names
, specify a constraint on the initial dimension(s) only.last (str | Sequence[str | None]) – 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