Skip to content

Commit

Permalink
unfix xarray, use nc-time-axis branch utime fix (#620)
Browse files Browse the repository at this point in the history
* resolve failing tests

* fix nc-time-axis branch ci
  • Loading branch information
aaronspring authored Jun 2, 2021
1 parent 37917ee commit d278ec8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions ci/requirements/climpred-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ dependencies:
- pip:
- pytest-lazy-fixture
- nb_black # notebook linting
- git+https://github.com/aulemahal/nc-time-axis.git@remove-utime
1 change: 1 addition & 0 deletions ci/requirements/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ dependencies:
- pip
- pip:
# Install latest version of climpred.
- git+https://github.com/aulemahal/nc-time-axis.git@remove-utime
- -e ../..
1 change: 1 addition & 0 deletions ci/requirements/docs_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ dependencies:
- pip
- pip:
# Install latest version of climpred.
- git+https://github.com/aulemahal/nc-time-axis.git@remove-utime
- -e ../..
- nb_black
1 change: 1 addition & 0 deletions ci/requirements/minimum-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ dependencies:
- xskillscore>=0.0.18
- pip:
- pytest-lazy-fixture
- git+https://github.com/aulemahal/nc-time-axis.git@remove-utime
- -e ../..
3 changes: 2 additions & 1 deletion climpred/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,8 @@ def bootstrap_compute(
if isHindcast and comparison != __m2o:
bootstrapped_uninit_skill = bootstrapped_uninit_skill.mean("member")

bootstrapped_hind = resample_func(hind, iterations, resample_dim)
with xr.set_options(keep_attrs=True):
bootstrapped_hind = resample_func(hind, iterations, resample_dim)
if dask.is_dask_collection(bootstrapped_hind):
bootstrapped_hind = bootstrapped_hind.chunk({"member": -1})

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
xarray<0.18
xarray
dask!=2021.03.0
matplotlib
ipython
Expand Down

0 comments on commit d278ec8

Please sign in to comment.