eelbrain.NDVar.get_data

NDVar.get_data(dims=None, mask=None)

Retrieve the NDVar’s data with a specific axes order.

Parameters
  • dims (Union[str, Sequence[str], None]) – Sequence of dimension names (or single dimension name). The array that is returned will have axes in this order. To insert a new axis with size 1 use numpy.newaxis/None. The default is the order of dimensions in the NDVar.

  • mask (Optional[float]) – If data is a masked array, set masked values to mask.

Returns

A reference to, view on or copy of the data (conservative memory usage).

Return type

data