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

⚠️ Nightly upstream-dev CI failed ⚠️ #1337

Closed
github-actions bot opened this issue Mar 28, 2023 · 0 comments · Fixed by #1354
Closed

⚠️ Nightly upstream-dev CI failed ⚠️ #1337

github-actions bot opened this issue Mar 28, 2023 · 0 comments · Fixed by #1354
Labels
CI Automation and Contiunous Integration

Comments

@github-actions
Copy link

github-actions bot commented Mar 28, 2023

Workflow Run URL

Python 3.10 Test Summary
tests/test_bootstrapping.py::Test_bootstrap::test_bootstrap_fraction_over_precip_thresh[True]: AssertionError: assert 0 > 0
 +  where 0 = <function count_nonzero at 0x7f3e1f98b130>(<xarray.DataArray 'pr' (time: 24, percentiles: 1)>\ndask.array<getitem, shape=(24, 1), dtype=float64, chunksize=(12, 1), chunktype=numpy.ndarray>\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:     > <xarray.DataArray 'pr' (time: 24, percentiles: 1)>\ndask.array<getitem, shape=(24, 1), dtype=float64, chunksize=(3, 1), chunktype=numpy.ndarray>\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:    )
 +    where <function count_nonzero at 0x7f3e1f98b130> = np.count_nonzero
 +  and   0 = <function count_nonzero at 0x7f3e1f98b130>(<xarray.DataArray 'pr' (time: 24, percentiles: 1)>\ndask.array<getitem, shape=(24, 1), dtype=float64, chunksize=(12, 1), chunktype=numpy.ndarray>\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:     < <xarray.DataArray 'pr' (time: 24, percentiles: 1)>\ndask.array<getitem, shape=(24, 1), dtype=float64, chunksize=(3, 1), chunktype=numpy.ndarray>\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:    )
 +    where <function count_nonzero at 0x7f3e1f98b130> = np.count_nonzero
tests/test_bootstrapping.py::Test_bootstrap::test_bootstrap_fraction_over_precip_thresh[False]: AssertionError: assert 0 > 0
 +  where 0 = <function count_nonzero at 0x7f3e1f98b130>(<xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[0.55226779],\n       [0.02889637],\n       [0.46263188],\n       [0.09608782],\n       [0.19599695],\n       [0.17740765],\n       [0.57787804],\n       [0.10259128],\n       [0.53601115],\n       [0.30032055],\n       [0.18488194],\n       [0.14720672],\n       [0.27094142],\n       [0.93900839],\n       [0.75324891],\n       [0.63421742],\n       [0.86354634],\n       [0.43439506],\n       [0.38807789],\n       [0.66611173],\n       [0.55383821],\n       [0.42761782],\n       [0.37848744],\n       [0.41073584]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:     > <xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:    )
 +    where <function count_nonzero at 0x7f3e1f98b130> = np.count_nonzero
 +  and   0 = <function count_nonzero at 0x7f3e1f98b130>(<xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[0.55226779],\n       [0.02889637],\n       [0.46263188],\n       [0.09608782],\n       [0.19599695],\n       [0.17740765],\n       [0.57787804],\n       [0.10259128],\n       [0.53601115],\n       [0.30032055],\n       [0.18488194],\n       [0.14720672],\n       [0.27094142],\n       [0.93900839],\n       [0.75324891],\n       [0.63421742],\n       [0.86354634],\n       [0.43439506],\n       [0.38807789],\n       [0.66611173],\n       [0.55383821],\n       [0.42761782],\n       [0.37848744],\n       [0.41073584]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:     < <xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) datetime64[ns] 2000-01-01 2000-02-01 ... 2001-12-01\nAttributes:\n    units:    )
 +    where <function count_nonzero at 0x7f3e1f98b130> = np.count_nonzero
tests/test_bootstrapping.py::Test_bootstrap::test_bootstrap_cftime: AssertionError: assert 0 > 0
 +  where 0 = <function count_nonzero at 0x7f3e1f98b130>(<xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[0.22700575],\n       [       nan],\n       [0.33297217],\n       [0.24790349],\n       [0.20204486],\n       [0.31032295],\n       [0.07502732],\n       [0.83933314],\n       [0.60433104],\n       [0.41006123],\n       [0.17300958],\n       [0.40252527],\n       [0.33333731],\n       [0.49733943],\n       [0.23584051],\n       [0.39900298],\n       [0.33348006],\n       [0.20602705],\n       [0.56912994],\n       [0.07832815],\n       [0.35976387],\n       [0.44118435],\n       [0.48072937],\n       [0.53417846]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) object 2000-01-01 00:00:00 ... 2001-12-01 00:00:00\nAttributes:\n    units:     > <xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) object 2000-01-01 00:00:00 ... 2001-12-01 00:00:00\nAttributes:\n    units:    )
 +    where <function count_nonzero at 0x7f3e1f98b130> = np.count_nonzero
 +  and   0 = <function count_nonzero at 0x7f3e1f98b130>(<xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[0.22700575],\n       [       nan],\n       [0.33297217],\n       [0.24790349],\n       [0.20204486],\n       [0.31032295],\n       [0.07502732],\n       [0.83933314],\n       [0.60433104],\n       [0.41006123],\n       [0.17300958],\n       [0.40252527],\n       [0.33333731],\n       [0.49733943],\n       [0.23584051],\n       [0.39900298],\n       [0.33348006],\n       [0.20602705],\n       [0.56912994],\n       [0.07832815],\n       [0.35976387],\n       [0.44118435],\n       [0.48072937],\n       [0.53417846]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) object 2000-01-01 00:00:00 ... 2001-12-01 00:00:00\nAttributes:\n    units:     < <xarray.DataArray 'pr' (time: 24, percentiles: 1)>\narray([[nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan],\n       [nan]])\nCoordinates:\n  * percentiles  (percentiles) int64 98\n  * time         (time) object 2000-01-01 00:00:00 ... 2001-12-01 00:00:00\nAttributes:\n    units:    )
 +    where <function count_nonzero at 0x7f3e1f98b130> = np.count_nonzero
@github-actions github-actions bot added the CI Automation and Contiunous Integration label Mar 28, 2023
aulemahal added a commit that referenced this issue Apr 21, 2023
<!--Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [x] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #1337.
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features)
- [x] CHANGES.rst has been updated (with summary of main changes)
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added

### What kind of change does this PR introduce?

* Fixes the installation steps for sbck in tox
* New xarray changes behaviour when summing an all-NaN period with
`resample`. It now returns NaN, whereas earlier it returned 0. This
broke `fraction_over_precip_thresh`, where some values where masked. It
is now fixed by replacing masked values with 0.

### Does this PR introduce a breaking change?

No?

### Other information:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Automation and Contiunous Integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants