Skip to content

Commit 6d63b05

Browse files
committed
Merge branch 'master' into astypekeepattrs
2 parents 3a6cdaf + d9ebcaf commit 6d63b05

Some content is hidden

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

55 files changed

+1612
-1099
lines changed

ci/min_deps_check.py

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,21 @@
2323
"pytest-env",
2424
}
2525

26-
POLICY_MONTHS = {"python": 42, "numpy": 24, "pandas": 12, "scipy": 12}
27-
POLICY_MONTHS_DEFAULT = 6
28-
26+
POLICY_MONTHS = {"python": 42, "numpy": 24, "setuptools": 42}
27+
POLICY_MONTHS_DEFAULT = 12
28+
POLICY_OVERRIDE = {
29+
# dask < 2.9 has trouble with nan-reductions
30+
# TODO remove this special case and the matching note in installing.rst
31+
# after January 2021.
32+
"dask": (2, 9),
33+
"distributed": (2, 9),
34+
# setuptools-scm doesn't work with setuptools < 36.7 (Nov 2017).
35+
# The conda metadata is malformed for setuptools < 38.4 (Jan 2018)
36+
# (it's missing a timestamp which prevents this tool from working).
37+
# TODO remove this special case and the matching note in installing.rst
38+
# after July 2021.
39+
"setuptools": (38, 4),
40+
}
2941
has_errors = False
3042

3143

@@ -151,6 +163,11 @@ def process_pkg(
151163
policy_minor = minor
152164
policy_published_actual = published
153165

166+
try:
167+
policy_major, policy_minor = POLICY_OVERRIDE[pkg]
168+
except KeyError:
169+
pass
170+
154171
if (req_major, req_minor) < (policy_major, policy_minor):
155172
status = "<"
156173
elif (req_major, req_minor) > (policy_major, policy_minor):

ci/requirements/doc.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies:
1313
- ipython
1414
- iris>=2.3
1515
- jupyter_client
16+
- matplotlib-base=3.3.0
1617
- nbsphinx
1718
- netcdf4>=1.5
1819
- numba
@@ -23,7 +24,11 @@ dependencies:
2324
- rasterio>=1.1
2425
- seaborn
2526
- setuptools
26-
- sphinx=3.1
27+
- sphinx=3.2
2728
- sphinx_rtd_theme>=0.4
2829
- sphinx-autosummary-accessors
2930
- zarr>=2.4
31+
- pip
32+
- pip:
33+
# relative to this file. Needs to be editable to be accepted.
34+
- -e ../..

ci/requirements/py36-bare-minimum.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ dependencies:
1010
- pytest-env
1111
- numpy=1.15
1212
- pandas=0.25
13-
- setuptools=41.2
13+
- setuptools=38.4

ci/requirements/py36-min-all-deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies:
4343
- rasterio=1.0
4444
- scipy=1.3
4545
- seaborn=0.9
46-
- setuptools=41.2
46+
- setuptools=38.4
4747
# - sparse # See py36-min-nep18.yml
4848
- toolz=0.10
4949
- zarr=2.3

ci/requirements/py36-min-nep18.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ dependencies:
1515
- pytest
1616
- pytest-cov
1717
- pytest-env
18-
- scipy=1.2
19-
- setuptools=41.2
18+
- scipy=1.3
19+
- setuptools=38.4
2020
- sparse=0.8

doc/api-hidden.rst

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
core.rolling.DatasetCoarsen.var
5353
core.rolling.DatasetCoarsen.boundary
5454
core.rolling.DatasetCoarsen.coord_func
55+
core.rolling.DatasetCoarsen.keep_attrs
5556
core.rolling.DatasetCoarsen.obj
5657
core.rolling.DatasetCoarsen.side
5758
core.rolling.DatasetCoarsen.trim_excess
@@ -104,6 +105,8 @@
104105
core.resample.DatasetResample.dims
105106
core.resample.DatasetResample.groups
106107

108+
core.rolling.DatasetRolling.argmax
109+
core.rolling.DatasetRolling.argmin
107110
core.rolling.DatasetRolling.count
108111
core.rolling.DatasetRolling.max
109112
core.rolling.DatasetRolling.mean
@@ -115,11 +118,15 @@
115118
core.rolling.DatasetRolling.var
116119
core.rolling.DatasetRolling.center
117120
core.rolling.DatasetRolling.dim
121+
core.rolling.DatasetRolling.keep_attrs
118122
core.rolling.DatasetRolling.min_periods
119123
core.rolling.DatasetRolling.obj
120124
core.rolling.DatasetRolling.rollings
121125
core.rolling.DatasetRolling.window
122126

127+
core.weighted.DatasetWeighted.obj
128+
core.weighted.DatasetWeighted.weights
129+
123130
core.rolling_exp.RollingExp.mean
124131

125132
Dataset.argsort
@@ -188,6 +195,7 @@
188195
core.rolling.DataArrayCoarsen.var
189196
core.rolling.DataArrayCoarsen.boundary
190197
core.rolling.DataArrayCoarsen.coord_func
198+
core.rolling.DataArrayCoarsen.keep_attrs
191199
core.rolling.DataArrayCoarsen.obj
192200
core.rolling.DataArrayCoarsen.side
193201
core.rolling.DataArrayCoarsen.trim_excess
@@ -238,6 +246,8 @@
238246
core.resample.DataArrayResample.dims
239247
core.resample.DataArrayResample.groups
240248

249+
core.rolling.DataArrayRolling.argmax
250+
core.rolling.DataArrayRolling.argmin
241251
core.rolling.DataArrayRolling.count
242252
core.rolling.DataArrayRolling.max
243253
core.rolling.DataArrayRolling.mean
@@ -249,11 +259,15 @@
249259
core.rolling.DataArrayRolling.var
250260
core.rolling.DataArrayRolling.center
251261
core.rolling.DataArrayRolling.dim
262+
core.rolling.DataArrayRolling.keep_attrs
252263
core.rolling.DataArrayRolling.min_periods
253264
core.rolling.DataArrayRolling.obj
254265
core.rolling.DataArrayRolling.window
255266
core.rolling.DataArrayRolling.window_labels
256267

268+
core.weighted.DataArrayWeighted.obj
269+
core.weighted.DataArrayWeighted.weights
270+
257271
DataArray.argsort
258272
DataArray.clip
259273
DataArray.conj
@@ -277,6 +291,13 @@
277291
core.accessor_dt.DatetimeAccessor.days_in_month
278292
core.accessor_dt.DatetimeAccessor.daysinmonth
279293
core.accessor_dt.DatetimeAccessor.hour
294+
core.accessor_dt.DatetimeAccessor.is_leap_year
295+
core.accessor_dt.DatetimeAccessor.is_month_end
296+
core.accessor_dt.DatetimeAccessor.is_month_start
297+
core.accessor_dt.DatetimeAccessor.is_quarter_end
298+
core.accessor_dt.DatetimeAccessor.is_quarter_start
299+
core.accessor_dt.DatetimeAccessor.is_year_end
300+
core.accessor_dt.DatetimeAccessor.is_year_start
280301
core.accessor_dt.DatetimeAccessor.microsecond
281302
core.accessor_dt.DatetimeAccessor.minute
282303
core.accessor_dt.DatetimeAccessor.month
@@ -291,6 +312,14 @@
291312
core.accessor_dt.DatetimeAccessor.weekofyear
292313
core.accessor_dt.DatetimeAccessor.year
293314

315+
core.accessor_dt.TimedeltaAccessor.ceil
316+
core.accessor_dt.TimedeltaAccessor.floor
317+
core.accessor_dt.TimedeltaAccessor.round
318+
core.accessor_dt.TimedeltaAccessor.days
319+
core.accessor_dt.TimedeltaAccessor.microseconds
320+
core.accessor_dt.TimedeltaAccessor.nanoseconds
321+
core.accessor_dt.TimedeltaAccessor.seconds
322+
294323
core.accessor_str.StringAccessor.capitalize
295324
core.accessor_str.StringAccessor.center
296325
core.accessor_str.StringAccessor.contains
@@ -365,6 +394,7 @@
365394
Variable.min
366395
Variable.no_conflicts
367396
Variable.notnull
397+
Variable.pad
368398
Variable.prod
369399
Variable.quantile
370400
Variable.rank
@@ -407,6 +437,8 @@
407437

408438
IndexVariable.all
409439
IndexVariable.any
440+
IndexVariable.argmax
441+
IndexVariable.argmin
410442
IndexVariable.argsort
411443
IndexVariable.astype
412444
IndexVariable.broadcast_equals
@@ -436,6 +468,7 @@
436468
IndexVariable.min
437469
IndexVariable.no_conflicts
438470
IndexVariable.notnull
471+
IndexVariable.pad
439472
IndexVariable.prod
440473
IndexVariable.quantile
441474
IndexVariable.rank
@@ -538,6 +571,16 @@
538571
ufuncs.tanh
539572
ufuncs.trunc
540573

574+
plot.plot
575+
plot.line
576+
plot.step
577+
plot.hist
578+
plot.contour
579+
plot.contourf
580+
plot.imshow
581+
plot.pcolormesh
582+
plot.scatter
583+
541584
plot.FacetGrid.map_dataarray
542585
plot.FacetGrid.set_titles
543586
plot.FacetGrid.set_ticks
@@ -547,11 +590,16 @@
547590
CFTimeIndex.any
548591
CFTimeIndex.append
549592
CFTimeIndex.argsort
593+
CFTimeIndex.argmax
594+
CFTimeIndex.argmin
550595
CFTimeIndex.asof
551596
CFTimeIndex.asof_locs
552597
CFTimeIndex.astype
598+
CFTimeIndex.calendar
599+
CFTimeIndex.ceil
553600
CFTimeIndex.contains
554601
CFTimeIndex.copy
602+
CFTimeIndex.days_in_month
555603
CFTimeIndex.delete
556604
CFTimeIndex.difference
557605
CFTimeIndex.drop
@@ -562,6 +610,7 @@
562610
CFTimeIndex.equals
563611
CFTimeIndex.factorize
564612
CFTimeIndex.fillna
613+
CFTimeIndex.floor
565614
CFTimeIndex.format
566615
CFTimeIndex.get_indexer
567616
CFTimeIndex.get_indexer_for
@@ -602,6 +651,7 @@
602651
CFTimeIndex.reindex
603652
CFTimeIndex.rename
604653
CFTimeIndex.repeat
654+
CFTimeIndex.round
605655
CFTimeIndex.searchsorted
606656
CFTimeIndex.set_names
607657
CFTimeIndex.set_value
@@ -688,15 +738,20 @@
688738
backends.NetCDF4DataStore.is_remote
689739
backends.NetCDF4DataStore.lock
690740

741+
backends.H5NetCDFStore.autoclose
691742
backends.H5NetCDFStore.close
692743
backends.H5NetCDFStore.encode
693744
backends.H5NetCDFStore.encode_attribute
694745
backends.H5NetCDFStore.encode_variable
746+
backends.H5NetCDFStore.format
695747
backends.H5NetCDFStore.get_attrs
696748
backends.H5NetCDFStore.get_dimensions
697749
backends.H5NetCDFStore.get_encoding
698750
backends.H5NetCDFStore.get_variables
751+
backends.H5NetCDFStore.is_remote
699752
backends.H5NetCDFStore.load
753+
backends.H5NetCDFStore.lock
754+
backends.H5NetCDFStore.open
700755
backends.H5NetCDFStore.open_store_variable
701756
backends.H5NetCDFStore.prepare_variable
702757
backends.H5NetCDFStore.set_attribute

doc/combining.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -244,16 +244,6 @@ in this manner.
244244
Combining along multiple dimensions
245245
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
246246

247-
.. note::
248-
249-
There are currently three combining functions with similar names:
250-
:py:func:`~xarray.auto_combine`, :py:func:`~xarray.combine_by_coords`, and
251-
:py:func:`~xarray.combine_nested`. This is because
252-
``auto_combine`` is in the process of being deprecated in favour of the other
253-
two functions, which are more general. If your code currently relies on
254-
``auto_combine``, then you will be able to get similar functionality by using
255-
``combine_nested``.
256-
257247
For combining many objects along multiple dimensions xarray provides
258248
:py:func:`~xarray.combine_nested` and :py:func:`~xarray.combine_by_coords`. These
259249
functions use a combination of ``concat`` and ``merge`` across different

0 commit comments

Comments
 (0)