xarray-einstats icon indicating copy to clipboard operation
xarray-einstats copied to clipboard

Change the monkeypatch thing to using with contexts?

Open OriolAbril opened this issue 3 years ago • 0 comments

It would be nice to be able to do things like

with matrix_dims(["dim1", "dim3"]):
    chol = xe.linalg.cholesky(da)
    eig = xe.linalg.eig(da)

instead of having to use the monkeypatch trick (currently documented) or needing to pass the dimensions every time.

OriolAbril avatar Aug 06 '22 21:08 OriolAbril