eelbrain.NDVar.get_dims

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

Return a tuple with the requested Dimension objects

Parameters:
names : sequence of {str | None}

Names of the dimension objects. If None is inserted in place of names, these dimensions are inferred.

first : str | sequence of str

Instead of names, specify a constraint on the initial dimension(s) only.

last : str | sequence of str

Instead of names, specify a constraint on the last dimension(s) only.

Returns:
dims : tuple of Dimension

Dimension objects in the same order as in names.