Skip to content

Commit f9ac1a1

Browse files
authored
Merge pull request #3 from Ouranosinc/master
Update to latest xarray.
2 parents 656f8bd + 4317c69 commit f9ac1a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+2410
-695
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
- [ ] Closes #xxxx (remove if there is no corresponding issue, which should only be the case for minor changes)
2-
- [ ] Tests added (for all bug fixes or enhancements)
3-
- [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API (remove if this change should not be visible to users, e.g., if it is an internal clean-up, or if this is part of a larger project that will be documented later)
1+
<!-- Feel free to remove check-list items aren't relevant to your change -->
2+
3+
- [ ] Closes #xxxx
4+
- [ ] Tests added
5+
- [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API

ci/requirements-py36-zarr-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ dependencies:
1818
- pip:
1919
- coveralls
2020
- pytest-cov
21-
- git+https://github.com/alimanfoo/zarr.git
21+
- git+https://github.com/zarr-developers/zarr.git

ci/requirements-py37.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
name: test_env
22
channels:
3-
- defaults
3+
- conda-forge
44
dependencies:
55
- python=3.7
6+
- cftime
7+
- dask
8+
- distributed
9+
- h5py
10+
- h5netcdf
11+
- matplotlib
12+
- netcdf4
13+
- pytest
14+
- flake8
15+
- numpy
16+
- pandas
17+
- scipy
18+
- seaborn
19+
- toolz
20+
- rasterio
21+
- bottleneck
22+
- zarr
23+
- pseudonetcdf>=3.0.1
24+
- eccodes
625
- pip:
7-
- pytest
8-
- flake8
9-
- mock
10-
- numpy
11-
- pandas
1226
- coveralls
1327
- pytest-cov
28+
- pydap
29+
- lxml
30+
- cfgrib>=0.9.2

doc/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ Universal functions
377377
.. warning::
378378

379379
With recent versions of numpy, dask and xarray, NumPy ufuncs are now
380-
supported directly on all xarray and dask objects. This obliviates the need
380+
supported directly on all xarray and dask objects. This obviates the need
381381
for the ``xarray.ufuncs`` module, which should not be used for new code
382382
unless compatibility with versions of NumPy prior to v1.13 is required.
383383

doc/computation.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ Note that rolling window aggregations are faster when bottleneck_ is installed.
164164

165165
We can also manually iterate through ``Rolling`` objects:
166166

167-
.. ipython:: python
167+
.. code:: python
168168
169-
@verbatim
170169
for label, arr_window in r:
171170
# arr_window is a view of x
172171
@@ -268,7 +267,7 @@ This means, for example, that you always subtract an array from its transpose:
268267
269268
c - c.T
270269
271-
You can explicitly broadcast xaray data structures by using the
270+
You can explicitly broadcast xarray data structures by using the
272271
:py:func:`~xarray.broadcast` function:
273272

274273
.. ipython:: python
@@ -298,9 +297,9 @@ operations. The default result of a binary operation is by the *intersection*
298297
If coordinate values for a dimension are missing on either argument, all
299298
matching dimensions must have the same size:
300299

301-
.. ipython:: python
300+
.. ipython::
301+
:verbatim:
302302

303-
@verbatim
304303
In [1]: arr + xr.DataArray([1, 2], dims='x')
305304
ValueError: arguments without labels along dimension 'x' cannot be aligned because they have different dimension size(s) {2} than the size of the aligned dimension labels: 3
306305

0 commit comments

Comments
 (0)