Skip to content

Commit

Permalink
Merge pull request #29 from willirath/hotfix-remove-inplace-arg
Browse files Browse the repository at this point in the history
Make compatible to xarray>=0.12
  • Loading branch information
jk-rieck authored Oct 24, 2019
2 parents bbc574e + 223dc16 commit 597bbe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- pytest
- pytest-cov
- seawater
- xarray<0.11
- xarray>=0.12
- pip:
- codecov
- git+https://github.com/xgcm/xgcm.git@bf4a2239d64dfd1c0d5b1af03e7394488433c11a
3 changes: 1 addition & 2 deletions xorca/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ def get_all_compatible_chunk_sizes(chunks, dobj):
def set_time_independent_vars_to_coords(ds):
"""Make sure all time-independent variables are coordinates."""
return ds.set_coords([v for v in ds.data_vars.keys()
if 't' not in ds[v].dims],
inplace=False)
if 't' not in ds[v].dims])


def preprocess_orca(mesh_mask, ds, **kwargs):
Expand Down

0 comments on commit 597bbe8

Please sign in to comment.