Skip to content

Commit

Permalink
Merge pull request #28 from boutproject/fix_for_xarray_master
Browse files Browse the repository at this point in the history
Arguments for open_mfdataset() now match signature in xarray master branch
  • Loading branch information
ZedThree authored Jul 2, 2019
2 parents dad4e15 + 28da4af commit 626ec92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,7 @@ install using `python setup.py`
You can run the tests by navigating to the `/xBOUT/` directory and
entering `pytest`.


It relies on two upstream additions to xarray
([first](https://github.com/pydata/xarray/pull/2482) &
[second](https://github.com/pydata/xarray/pull/2553) pull requests).
The first is merged, but the second isn't, so for now you need to clone
the branch of xarray containing the PR
[here](https://github.com/TomNicholas/xarray/tree/feature/nd_combine).
Requires xarray v0.12.2 or later.

You will also need to install [dask](https://dask.org/),
as described in the xarray documentation
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
git+https://github.com/TomNicholas/xarray@feature/nd_combine#egg=xarray
xarray >= 0.12.2
dask[array] >= 1.0.0
natsort >= 5.5.0
matplotlib >= 2.2
Expand Down
8 changes: 4 additions & 4 deletions xbout/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def _auto_open_mfboutdataset(datapath, chunks={}, info=True, keep_guards=True):

_preprocess = partial(_trim, ghosts={'x': mxg, 'y': myg})

ds = xarray.open_mfdataset(paths_grid, concat_dims=concat_dims,
data_vars='minimal', preprocess=_preprocess,
engine=filetype, chunks=chunks,
infer_order_from_coords=False)
ds = xarray.open_mfdataset(paths_grid, concat_dim=concat_dims,
combine='nested', data_vars='minimal',
preprocess=_preprocess, engine=filetype,
chunks=chunks)

ds, metadata = _strip_metadata(ds)

Expand Down

0 comments on commit 626ec92

Please sign in to comment.