Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILED test > tests/test_frontend.py::test_regrid_dataarray[True] FAILED #291

Open
Thomas-Moore-Creative opened this issue Aug 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Thomas-Moore-Creative
Copy link

Hi and thanks for all the great development on xESMF! It is great.

My pytest -v --pyargs xesmf has a single failure.

tests/test_frontend.py::test_regrid_dataarray[True] FAILED
/miniconda3/envs/pangeo_xesmf/lib/python3.10/site-packages/xarray/core/dataset.py:1426: KeyError
KeyError: 'longitude'

I created my environment thus:

mamba create -n pangeo_xesmf python=3.10
mamba activate pangeo_xesmf
mamba install -c conda-forge xesmf
mamba install -c conda-forge dask netCDF4
mamba install -c conda-forge matplotlib cartopy jupyterlab
mamba install -c conda-forge nodejs
mamba install -c conda-forge dask-labextension

pip install pytest

(main) mamba list | grep 'esmf'

# packages in environment at ...... miniconda3/envs/pangeo_xesmf:
esmf                      8.4.2           mpi_mpich_h8fb3fe9_102    conda-forge
xesmf                     0.7.1              pyhd8ed1ab_0    conda-forge

I'm on HPC that is linux-64 based platform.

Any ideas would be helpful, thanks!

@aulemahal
Copy link
Collaborator

Hi @Thomas-Moore-Creative , sorry for the long delay.

I'm not sure how you can get this only error, without other errors of the same type being raised too...

The error comes from cf_xarray not being able to recognize the coordinate. Can you tell us which version of cf_xarray you are using ?

Does this issue still happen if you update to the recent xESMF 0.8.1 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants