eelbrain.NDVar.get_data¶
-
NDVar.
get_data
(dims, mask=None)¶ Retrieve the NDVar’s data with a specific axes order.
- Parameters
dims (str | sequence of str) – 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
.mask (scalar) – If data is a masked array, set masked values to
mask
.
Notes
A shallow copy of the data is returned. To retrieve the data with the stored axes order use the .x attribute.