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

CI: nightly tests failing #308

Closed
Tracked by #313
anissa111 opened this issue Dec 5, 2022 · 0 comments · Fixed by #312
Closed
Tracked by #313

CI: nightly tests failing #308

anissa111 opened this issue Dec 5, 2022 · 0 comments · Fixed by #312
Assignees
Labels
bug Something isn't working

Comments

@anissa111
Copy link
Member

anissa111 commented Dec 5, 2022

Nightly tests fail across all versions of python and OS since Saturday, December 3

  • First failure here
  • Most current failure at time of issue creation here
  • Seem to be kicked off by the release of xarray 2022.12.0

Errors are all along the lines of:

======================================================================
ERROR: test_alt_coef (test.test_meteorology.Test_heat_index)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/anissaz/Desktop/GeoCAT/geocat-comp/test/test_meteorology.py", line 131, in test_alt_coef
    assert np.allclose(heat_index(self.t2, self.rh2, True),
  File "/Users/anissaz/Desktop/GeoCAT/geocat-comp/src/geocat/comp/meteorology.py", line 766, in heat_index
    heatindex = _heat_index(temperature, relative_humidity,
  File "/Users/anissaz/Desktop/GeoCAT/geocat-comp/src/geocat/comp/meteorology.py", line 111, in _heat_index
    heatindex = xr.where(temperature < 40, temperature, heatindex)
  File "/Users/anissaz/opt/miniconda3/envs/geocat_comp_build/lib/python3.10/site-packages/xarray/core/computation.py", line 1887, in where
    result.attrs = getattr(x, "attrs", {})
AttributeError: 'numpy.ndarray' object has no attribute 'attrs' 

Looking at the error coming from xarray, that section of the code was edited in this PR and included in the 2022.12.0 release three days ago

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

Successfully merging a pull request may close this issue.

1 participant