Skip to content
forked from pydata/xarray

Commit 4a355e6

Browse files
committed
Merge remote-tracking branch 'upstream/master' into map-blocks-schema
* upstream/master: (54 commits) Limit repr of arrays containing long strings (pydata#3900) expose a few zarr backend functions as semi-public api (pydata#3897) Use drawstyle instead of linestyle in plot.step. (pydata#3274) Implementation of polyfit and polyval (pydata#3733) misplaced quote in whatsnew (pydata#3889) Rename ordered_dict_intersection -> compat_dict_intersection (pydata#3887) Control attrs of result in `merge()`, `concat()`, `combine_by_coords()` and `combine_nested()` (pydata#3877) xfail test_uamiv_format_write (pydata#3885) Use `fixes` in PR template (pydata#3886) Tweaks to "how_to_release" (pydata#3882) whatsnew section for 0.16.0 Release v0.15.1 whatsnew for 0.15.1 (pydata#3879) update panel documentation (pydata#3880) reword the whats-new entry for unit support (pydata#3878) Raise error when assigning to IndexVariable.values & IndexVariable.data (pydata#3862) Re-enable tests xfailed in pydata#3808 and fix new CFTimeIndex failures due to upstream changes (pydata#3874) add spacing in the versions section of the issue report (pydata#3876) map_blocks: allow user function to add new unindexed dimension. (pydata#3817) Delete associated indexes when deleting coordinate variables. (pydata#3840) ...
2 parents 6f69955 + acf7d41 commit 4a355e6

Some content is hidden

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

82 files changed

+4492
-850
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ assignees: ''
2525
<!-- this should explain why the current behavior is a problem and why the expected output is a better solution -->
2626

2727

28-
#### Output of ``xr.show_versions()``
29-
<details>
28+
#### Versions
29+
30+
<details><summary>Output of `xr.show_versions()`</summary>
31+
3032
<!-- Paste the output here xr.show_versions() here -->
3133

34+
3235
</details>

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Feel free to remove check-list items aren't relevant to your change -->
22

3-
- [ ] Closes #xxxx
3+
- [ ] Fixes #xxxx
44
- [ ] Tests added
55
- [ ] Passes `isort -rc . && black . && mypy . && flake8`
66
- [ ] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API

HOW_TO_RELEASE.md

+33-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Time required: about an hour.
2323
4. Check that the ReadTheDocs build is passing.
2424
5. On the master branch, commit the release in git:
2525
```
26-
git commit -a -m 'Release v0.X.Y'
26+
git commit -am 'Release v0.X.Y'
2727
```
2828
6. Tag the release:
2929
```
@@ -60,10 +60,35 @@ Time required: about an hour.
6060
It's OK to force push to 'stable' if necessary. (We also update the stable
6161
branch with `git cherrypick` for documentation only fixes that apply the
6262
current released version.)
63-
12. Add a section for the next release (v.X.(Y+1)) to doc/whats-new.rst.
63+
12. Add a section for the next release (v.X.Y+1) to doc/whats-new.rst:
64+
```
65+
.. _whats-new.0.X.Y+1:
66+
67+
v0.X.Y+1 (unreleased)
68+
---------------------
69+
70+
Breaking changes
71+
~~~~~~~~~~~~~~~~
72+
73+
74+
New Features
75+
~~~~~~~~~~~~
76+
77+
78+
Bug fixes
79+
~~~~~~~~~
80+
81+
82+
Documentation
83+
~~~~~~~~~~~~~
84+
85+
86+
Internal Changes
87+
~~~~~~~~~~~~~~~~
88+
```
6489
13. Commit your changes and push to master again:
6590
```
66-
git commit -a -m 'New whatsnew section'
91+
git commit -am 'New whatsnew section'
6792
git push upstream master
6893
```
6994
You're done pushing to master!
@@ -88,15 +113,17 @@ Time required: about an hour.
88113
```
89114
git log "$(git tag --sort="v:refname" | sed -n 'x;$p').." --format="%aN" | sort -u
90115
```
91-
or by replacing `v0.X.Y` with the _previous_ release in:
116+
or by substituting the _previous_ release in:
92117
```
93-
git log v0.X.Y.. --format="%aN" | sort -u
118+
git log v0.X.Y-1.. --format="%aN" | sort -u
94119
```
120+
NB: copying this output into a Google Groups form can cause
121+
[issues](https://groups.google.com/forum/#!topic/xarray/hK158wAviPs) with line breaks, so take care
95122
96123
Note on version numbering:
97124
98125
We follow a rough approximation of semantic version. Only major releases (0.X.0)
99-
show include breaking changes. Minor releases (0.X.Y) are for bug fixes and
126+
should include breaking changes. Minor releases (0.X.Y) are for bug fixes and
100127
backwards compatible new features, but if a sufficient number of new features
101128
have arrived we will issue a major release even if there are no compatibility
102129
breaks.

azure-pipelines.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ jobs:
3232
steps:
3333
- template: ci/azure/unit-tests.yml
3434

35-
- job: MacOSX
36-
strategy:
37-
matrix:
38-
py38:
39-
conda_env: py38
40-
pool:
41-
vmImage: 'macOS-10.13'
42-
steps:
43-
- template: ci/azure/unit-tests.yml
35+
# excluded while waiting for https://github.com/conda-forge/libwebp-feedstock/issues/26
36+
# - job: MacOSX
37+
# strategy:
38+
# matrix:
39+
# py38:
40+
# conda_env: py38
41+
# pool:
42+
# vmImage: 'macOS-10.15'
43+
# steps:
44+
# - template: ci/azure/unit-tests.yml
4445

4546
- job: Windows
4647
strategy:

ci/azure/install.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ steps:
1919
--upgrade \
2020
matplotlib \
2121
numpy \
22-
pandas \
2322
scipy
2423
python -m pip install \
2524
--no-deps \
@@ -30,7 +29,8 @@ steps:
3029
git+https://github.com/Unidata/cftime \
3130
git+https://github.com/mapbox/rasterio \
3231
git+https://github.com/hgrecco/pint \
33-
git+https://github.com/pydata/bottleneck
32+
git+https://github.com/pydata/bottleneck \
33+
git+https://github.com/pandas-dev/pandas
3434
condition: eq(variables['UPSTREAM_DEV'], 'true')
3535
displayName: Install upstream dev dependencies
3636

ci/requirements/doc.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ dependencies:
66
- python=3.8
77
- bottleneck
88
- cartopy
9-
- cfgrib
10-
- h5netcdf
9+
- cfgrib>=0.9
10+
- dask>=2.10
11+
- h5netcdf>=0.7.4
1112
- ipykernel
1213
- ipython
13-
- iris
14+
- iris>=2.3
1415
- jupyter_client
1516
- nbsphinx
16-
- netcdf4
17+
- netcdf4>=1.5
1718
- numba
18-
- numpy
19+
- numpy>=1.17
1920
- numpydoc
20-
- pandas
21-
- rasterio
21+
- pandas>=1.0
22+
- rasterio>=1.1
2223
- seaborn
2324
- setuptools
24-
- sphinx
25-
- sphinx_rtd_theme
26-
- zarr
25+
- sphinx>=2.3
26+
- sphinx_rtd_theme>=0.4
27+
- zarr>=2.4

ci/requirements/py36-min-nep18.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- msgpack-python=0.6 # remove once distributed is bumped. distributed GH3491
1212
- numpy=1.17
1313
- pandas=0.25
14-
- pint=0.9 # Actually not enough as it doesn't implement __array_function__yet!
14+
- pint=0.11
1515
- pip
1616
- pytest
1717
- pytest-cov

conftest.py

+11
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,14 @@ def pytest_runtest_setup(item):
2121
pytest.skip(
2222
"set --run-network-tests to run test requiring an " "internet connection"
2323
)
24+
25+
26+
@pytest.fixture(autouse=True)
27+
def add_standard_imports(doctest_namespace):
28+
import numpy as np
29+
import pandas as pd
30+
import xarray as xr
31+
32+
doctest_namespace["np"] = np
33+
doctest_namespace["pd"] = pd
34+
doctest_namespace["xr"] = xr

doc/api-hidden.rst

-2
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@
379379
Variable.min
380380
Variable.no_conflicts
381381
Variable.notnull
382-
Variable.pad_with_fill_value
383382
Variable.prod
384383
Variable.quantile
385384
Variable.rank
@@ -453,7 +452,6 @@
453452
IndexVariable.min
454453
IndexVariable.no_conflicts
455454
IndexVariable.notnull
456-
IndexVariable.pad_with_fill_value
457455
IndexVariable.prod
458456
IndexVariable.quantile
459457
IndexVariable.rank

doc/api.rst

+23
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Top-level functions
3030
zeros_like
3131
ones_like
3232
dot
33+
polyval
3334
map_blocks
3435
show_versions
3536
set_options
@@ -165,13 +166,15 @@ Computation
165166
Dataset.groupby_bins
166167
Dataset.rolling
167168
Dataset.rolling_exp
169+
Dataset.weighted
168170
Dataset.coarsen
169171
Dataset.resample
170172
Dataset.diff
171173
Dataset.quantile
172174
Dataset.differentiate
173175
Dataset.integrate
174176
Dataset.map_blocks
177+
Dataset.polyfit
175178

176179
**Aggregation**:
177180
:py:attr:`~Dataset.all`
@@ -221,6 +224,7 @@ Reshaping and reorganizing
221224
Dataset.to_stacked_array
222225
Dataset.shift
223226
Dataset.roll
227+
Dataset.pad
224228
Dataset.sortby
225229
Dataset.broadcast_like
226230

@@ -341,6 +345,7 @@ Computation
341345
DataArray.groupby_bins
342346
DataArray.rolling
343347
DataArray.rolling_exp
348+
DataArray.weighted
344349
DataArray.coarsen
345350
DataArray.dt
346351
DataArray.resample
@@ -350,6 +355,7 @@ Computation
350355
DataArray.quantile
351356
DataArray.differentiate
352357
DataArray.integrate
358+
DataArray.polyfit
353359
DataArray.str
354360
DataArray.map_blocks
355361

@@ -402,6 +408,7 @@ Reshaping and reorganizing
402408
DataArray.to_unstacked_dataset
403409
DataArray.shift
404410
DataArray.roll
411+
DataArray.pad
405412
DataArray.sortby
406413
DataArray.broadcast_like
407414

@@ -578,6 +585,22 @@ Rolling objects
578585
core.rolling.DatasetRolling.reduce
579586
core.rolling_exp.RollingExp
580587

588+
Weighted objects
589+
================
590+
591+
.. autosummary::
592+
:toctree: generated/
593+
594+
core.weighted.DataArrayWeighted
595+
core.weighted.DataArrayWeighted.mean
596+
core.weighted.DataArrayWeighted.sum
597+
core.weighted.DataArrayWeighted.sum_of_weights
598+
core.weighted.DatasetWeighted
599+
core.weighted.DatasetWeighted.mean
600+
core.weighted.DatasetWeighted.sum
601+
core.weighted.DatasetWeighted.sum_of_weights
602+
603+
581604
Coarsen objects
582605
===============
583606

0 commit comments

Comments
 (0)