BIDS/datarray

Provide DataArray.axis as an attribute computed on-demand.

llvilanova opened this issue · 1 comments

This should provide faster object creation (e.g., routines internally creating temporary DataArray objects), as the 'axis' attribute is expected to be scarcely used by the user, and it can always be cached after computation.

DataArray.axis is now deprecated in favor of DataArray.axes