Skip to content

Commit 6b20a3e

Browse files
committed
Merge remote-tracking branch 'upstream/master' into optimize-lazy-equiv
* upstream/master: (23 commits) Feature/align in dot (pydata#3699) ENH: enable `H5NetCDFStore` to work with already open h5netcdf.File a… (pydata#3618) One-off isort run (pydata#3705) hardcoded xarray.__all__ (pydata#3703) Bump mypy to v0.761 (pydata#3704) remove DataArray and Dataset constructor deprecations for 0.15 (pydata#3560) Tests for variables with units (pydata#3654) Add an example notebook using apply_ufunc to vectorize 1D functions (pydata#3629) Use encoding['dtype'] over data.dtype when possible within CFMaskCoder.encode (pydata#3652) allow passing any iterable to drop when dropping variables (pydata#3693) Typo on DataSet/DataArray.to_dict documentation (pydata#3692) Fix mypy type checking tests failure in ds.merge (pydata#3690) Explicitly convert result of pd.to_datetime to a timezone-naive type (pydata#3688) ds.merge(da) bugfix (pydata#3677) fix docstring for combine_first: returns a Dataset (pydata#3683) Add option to choose mfdataset attributes source. (pydata#3498) How do I add a new variable to dataset. (pydata#3679) Add map_blocks example to whats-new (pydata#3682) Make dask names change when chunking Variables by different amounts. (pydata#3584) raise an error when renaming dimensions to existing names (pydata#3645) ...
2 parents 2ce560f + aa0f963 commit 6b20a3e

36 files changed

+2212
-130
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
hooks:
1212
- id: flake8
1313
- repo: https://github.com/pre-commit/mirrors-mypy
14-
rev: v0.730 # Must match ci/requirements/*.yml
14+
rev: v0.761 # Must match ci/requirements/*.yml
1515
hooks:
1616
- id: mypy
1717
# run these occasionally, ref discussion https://github.com/pydata/xarray/pull/3194

ci/requirements/doc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- jupyter_client
1515
- nbsphinx
1616
- netcdf4
17+
- numba
1718
- numpy
1819
- numpydoc
1920
- pandas<0.25 # Hack around https://github.com/pydata/xarray/issues/3369

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- iris=2.2
2626
- lxml=4.4 # Optional dep of pydap
2727
- matplotlib=3.1
28-
- mypy=0.730 # Must match .pre-commit-config.yaml
28+
- mypy=0.761 # Must match .pre-commit-config.yaml
2929
- nc-time-axis=1.2
3030
- netcdf4=1.4
3131
- numba=0.44

ci/requirements/py36.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- iris
2222
- lxml # optional dep of pydap
2323
- matplotlib
24-
- mypy=0.730 # Must match .pre-commit-config.yaml
24+
- mypy=0.761 # Must match .pre-commit-config.yaml
2525
- nc-time-axis
2626
- netcdf4
2727
- numba

ci/requirements/py37-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- iris
2222
- lxml # Optional dep of pydap
2323
- matplotlib
24-
- mypy=0.730 # Must match .pre-commit-config.yaml
24+
- mypy=0.761 # Must match .pre-commit-config.yaml
2525
- nc-time-axis
2626
- netcdf4
2727
- numba

ci/requirements/py37.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
- iris
2222
- lxml # Optional dep of pydap
2323
- matplotlib
24-
- mypy=0.730 # Must match .pre-commit-config.yaml
24+
- mypy=0.761 # Must match .pre-commit-config.yaml
2525
- nc-time-axis
2626
- netcdf4
2727
- numba

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
os.environ["PYTHONPATH"] = str(root)
2626
sys.path.insert(0, str(root))
2727

28-
import xarray
28+
import xarray # isort:skip
2929

3030
allowed_failures = set()
3131

doc/data-structures.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ setting) variables and attributes:
353353
This is particularly useful in an exploratory context, because you can
354354
tab-complete these variable names with tools like IPython.
355355

356+
.. _dictionary_like_methods:
357+
356358
Dictionary like methods
357359
~~~~~~~~~~~~~~~~~~~~~~~
358360

doc/examples.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ Examples
1010
examples/visualization_gallery
1111
examples/ROMS_ocean_model
1212
examples/ERA5-GRIB-example
13+
14+
Using apply_ufunc
15+
------------------
16+
.. toctree::
17+
:maxdepth: 2
18+
19+
examples/apply_ufunc_vectorize_1d

0 commit comments

Comments
 (0)