[/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py:79](https://leap.2i2c.cloud/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py#line=78): UserWarning: rename 'nj' to 'y' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
da = da.rename({di: target}).set_xindex(target)
[/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py:79](https://leap.2i2c.cloud/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py#line=78): UserWarning: rename 'ni' to 'x' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
da = da.rename({di: target}).set_xindex(target)
[/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py:79](https://leap.2i2c.cloud/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py#line=78): UserWarning: rename 'nj' to 'y' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
da = da.rename({di: target}).set_xindex(target)
[/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py:79](https://leap.2i2c.cloud/srv/conda/envs/notebook/lib/python3.11/site-packages/xmip/preprocessing.py#line=78): UserWarning: rename 'ni' to 'x' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate.
da = da.rename({di: target}).set_xindex(target)
I think this is not bad but might be nice to get rid of this warning by properly using swap dims?
gives:
I think this is not bad but might be nice to get rid of this warning by properly using swap dims?
Originally posted by @jbusecke in https://github.com/jbusecke/xMIP/issues/357#issuecomment-2187818645