xarray icon indicating copy to clipboard operation
xarray copied to clipboard

Support tabmat matrices as DataArrays

Open hammer opened this issue 4 years ago • 1 comments

https://github.com/Quantco/tabmat defines some matrix types that could be useful to wrap with DataArray.

hammer avatar Oct 12 '21 16:10 hammer

there's two things we need to do before that can happen: those matrix types need to implement __array_ufunc__ and __array_function__ (or __array_namespace__, once we support that), and xarray needs to figure out how to deal with ndarray subclasses – right now, they're cast to ndarray.

keewis avatar Oct 17 '21 12:10 keewis