Skip to content

Commit 41cca04

Browse files
committed
Merge branch 'master' into yohai-ds_scatter
* master: (29 commits) Handle the character array dim name (pydata#2896) Partial fix for pydata#2841 to improve formatting. (pydata#2906) docs: Move quick overview one level up (pydata#2890) Manually specify chunks in open_zarr (pydata#2530) Minor improvement of docstring for Dataset (pydata#2904) Fix minor typos in docstrings (pydata#2903) Added docs example for `xarray.Dataset.get()` (pydata#2894) Bugfix for docs build instructions (pydata#2897) Return correct count for scalar datetime64 arrays (pydata#2892) Indexing with an empty array (pydata#2883) BUG: Fix pydata#2864 by adding the missing vrt parameters (pydata#2865) Reduce length of cftime resample tests (pydata#2879) WIP: type annotations (pydata#2877) decreased pytest verbosity (pydata#2881) Fix mypy typing error in cftime_offsets.py (pydata#2878) update links to https (pydata#2872) revert to 0.12.2 dev 0.12.1 release Various fixes for explicit Dataset.indexes (pydata#2858) Fix minor typo in docstring (pydata#2860) ...
2 parents ee662b4 + 6d93a95 commit 41cca04

Some content is hidden

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

41 files changed

+1375
-729
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ script:
6565
elif [[ "$CONDA_ENV" == "py36-hypothesis" ]]; then
6666
pytest properties ;
6767
else
68-
py.test xarray --cov=xarray --cov-config ci/.coveragerc --cov-report term-missing --verbose $EXTRA_FLAGS;
68+
py.test xarray --cov=xarray --cov-config ci/.coveragerc --cov-report term-missing $EXTRA_FLAGS;
6969
fi
7070

7171
after_success:

README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ xarray: N-D labeled arrays and datasets
88
.. image:: https://coveralls.io/repos/pydata/xarray/badge.svg
99
:target: https://coveralls.io/r/pydata/xarray
1010
.. image:: https://readthedocs.org/projects/xray/badge/?version=latest
11-
:target: http://xarray.pydata.org/
12-
.. image:: http://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat
13-
:target: http://pandas.pydata.org/speed/xarray/
11+
:target: https://xarray.pydata.org/
12+
.. image:: https://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat
13+
:target: https://pandas.pydata.org/speed/xarray/
1414
.. image:: https://img.shields.io/pypi/v/xarray.svg
1515
:target: https://pypi.python.org/pypi/xarray/
1616

@@ -30,10 +30,10 @@ It is particularly tailored to working with netCDF_ files, which were the
3030
source of xarray's data model, and integrates tightly with dask_ for parallel
3131
computing.
3232

33-
.. _NumPy: http://www.numpy.org
34-
.. _pandas: http://pandas.pydata.org
35-
.. _dask: http://dask.org
36-
.. _netCDF: http://www.unidata.ucar.edu/software/netcdf
33+
.. _NumPy: https://www.numpy.org
34+
.. _pandas: https://pandas.pydata.org
35+
.. _dask: https://dask.org
36+
.. _netCDF: https://www.unidata.ucar.edu/software/netcdf
3737

3838
Why xarray?
3939
-----------
@@ -66,12 +66,12 @@ powerful and concise interface. For example:
6666
Documentation
6767
-------------
6868

69-
Learn more about xarray in its official documentation at http://xarray.pydata.org/
69+
Learn more about xarray in its official documentation at https://xarray.pydata.org/
7070

7171
Contributing
7272
------------
7373

74-
You can find information about contributing to xarray at our `Contributing page <http://xarray.pydata.org/en/latest/contributing.html#>`_.
74+
You can find information about contributing to xarray at our `Contributing page <https://xarray.pydata.org/en/latest/contributing.html#>`_.
7575

7676
Get in touch
7777
------------
@@ -81,9 +81,9 @@ Get in touch
8181
- For less well defined questions or ideas, or to announce other projects of
8282
interest to xarray users, use the `mailing list`_.
8383

84-
.. _StackOverFlow: http://stackoverflow.com/questions/tagged/python-xarray
84+
.. _StackOverFlow: https://stackoverflow.com/questions/tagged/python-xarray
8585
.. _mailing list: https://groups.google.com/forum/#!forum/xarray
86-
.. _on GitHub: http://github.com/pydata/xarray
86+
.. _on GitHub: https://github.com/pydata/xarray
8787

8888
NumFOCUS
8989
--------
@@ -97,7 +97,7 @@ to supporting the open source scientific computing community. If you like
9797
Xarray and want to support our mission, please consider making a donation_
9898
to support our efforts.
9999

100-
.. _donation: https://www.flipcause.com/secure/cause_pdetails/NDE2NTU=
100+
.. _donation: https://numfocus.salsalabs.org/donate-to-xarray/
101101

102102
History
103103
-------
@@ -120,7 +120,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
120120
you may not use this file except in compliance with the License.
121121
You may obtain a copy of the License at
122122

123-
http://www.apache.org/licenses/LICENSE-2.0
123+
https://www.apache.org/licenses/LICENSE-2.0
124124

125125
Unless required by applicable law or agreed to in writing, software
126126
distributed under the License is distributed on an "AS IS" BASIS,

ci/requirements-py35-min.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: test_env
22
dependencies:
3-
- python=3.5
3+
- python=3.5.0
44
- pytest
55
- flake8
66
- mock

doc/contributing.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,17 +285,23 @@ How to build the *xarray* documentation
285285

286286
Requirements
287287
~~~~~~~~~~~~
288+
Make sure to follow the instructions on :ref:`creating a development environment above <contributing.dev_env>`, but
289+
to build the docs you need to use the environment file ``doc/environment.yml``.
288290

289-
First, you need to have a development environment to be able to build xarray
290-
(see the docs on :ref:`creating a development environment above <contributing.dev_env>`).
291+
.. code-block:: none
291292
292-
Building the documentation
293-
~~~~~~~~~~~~~~~~~~~~~~~~~~
293+
# Create and activate the docs environment
294+
conda env create -f doc/environment.yml
295+
conda activate xarray-docs
294296
295-
In your development environment, install ``sphinx``, ``sphinx_rtd_theme``,
296-
``sphinx-gallery`` and ``numpydoc``::
297+
# or with older versions of Anaconda:
298+
source activate xarray-docs
297299
298-
conda install -c conda-forge sphinx sphinx_rtd_theme sphinx-gallery numpydoc
300+
# Build and install xarray
301+
pip install -e .
302+
303+
Building the documentation
304+
~~~~~~~~~~~~~~~~~~~~~~~~~~
299305

300306
Navigate to your local ``xarray/doc/`` directory in the console and run::
301307

doc/data-structures.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,6 @@ 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-
.. warning::
357-
358-
We are changing the behavior of iterating over a Dataset the next major
359-
release of xarray, to only include data variables instead of both data
360-
variables and coordinates. In the meantime, prefer iterating over
361-
``ds.data_vars`` or ``ds.coords``.
362-
363356
Dictionary like methods
364357
~~~~~~~~~~~~~~~~~~~~~~~
365358

@@ -370,6 +363,7 @@ example, to create this example dataset from scratch, we could have written:
370363
371364
ds = xr.Dataset()
372365
ds['temperature'] = (('x', 'y', 'time'), temp)
366+
ds['temperature_double'] = (('x', 'y', 'time'), temp * 2 )
373367
ds['precipitation'] = (('x', 'y', 'time'), precip)
374368
ds.coords['lat'] = (('x', 'y'), lat)
375369
ds.coords['lon'] = (('x', 'y'), lon)
@@ -404,9 +398,9 @@ operations keep around coordinates:
404398

405399
.. ipython:: python
406400
407-
list(ds[['temperature']])
408-
list(ds[['x']])
409-
list(ds.drop('temperature'))
401+
ds[['temperature']]
402+
ds[['temperature', 'temperature_double']]
403+
ds.drop('temperature')
410404
411405
To remove a dimension, you can use :py:meth:`~xarray.Dataset.drop_dims` method.
412406
Any variables using that dimension are dropped:

doc/examples.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Examples
44
.. toctree::
55
:maxdepth: 2
66

7-
examples/quick-overview
87
examples/weather-data
98
examples/monthly-means
109
examples/multidimensional-coords

doc/examples/quick-overview.rst

Lines changed: 0 additions & 183 deletions
This file was deleted.

doc/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Documentation
2929

3030
* :doc:`why-xarray`
3131
* :doc:`faq`
32+
* :doc:`quick-overview`
3233
* :doc:`examples`
3334
* :doc:`installing`
3435

@@ -39,6 +40,7 @@ Documentation
3940

4041
why-xarray
4142
faq
43+
quick-overview
4244
examples
4345
installing
4446

@@ -140,7 +142,7 @@ to supporting the open source scientific computing community. If you like
140142
Xarray and want to support our mission, please consider making a donation_
141143
to support our efforts.
142144

143-
.. _donation: https://www.flipcause.com/secure/cause_pdetails/NDE2NTU=
145+
.. _donation: https://numfocus.salsalabs.org/donate-to-xarray/
144146

145147

146148
History

0 commit comments

Comments
 (0)