Skip to content

Doc fixes/cleanup in anticipation of 0.10.1 release #1940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import datetime
import importlib

allowed_failures = []
allowed_failures = set()

print("python exec:", sys.executable)
print("sys.path:", sys.path)
Expand All @@ -34,11 +34,15 @@
print("%s: %s, %s" % (name, module.__version__, fname))
except ImportError:
print("no %s" % name)
# neither rasterio nor cartopy should be hard requirements for
# the doc build.
if name == 'rasterio':
# not having rasterio should not break the build process
allowed_failures = ['gallery/plot_rasterio_rgb.py',
'gallery/plot_rasterio.py'
]
allowed_failures.update(['gallery/plot_rasterio_rgb.py',
'gallery/plot_rasterio.py'])
elif name == 'cartopy':
allowed_failures.update(['gallery/plot_cartopy_facetgrid.py',
'gallery/plot_rasterio_rgb.py',
'gallery/plot_rasterio.py'])

import xarray
print("xarray: %s, %s" % (xarray.__version__, xarray.__file__))
Expand Down Expand Up @@ -70,7 +74,7 @@
sphinx_gallery_conf = {'examples_dirs': 'gallery',
'gallery_dirs': 'auto_gallery',
'backreferences_dir': False,
'expected_failing_examples': allowed_failures
'expected_failing_examples': list(allowed_failures)
}

autosummary_generate = True
Expand Down
5 changes: 3 additions & 2 deletions doc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,10 @@ First, you need to have a development environment to be able to build xarray
Building the documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~

In your development environment, install ``sphinx`` and ``sphinx_rtd_theme``::
In your development environment, install ``sphinx``, ``sphinx_rtd_theme``,
``sphinx-gallery`` and ``numpydoc``::

conda install -c anaconda sphinx sphinx_rtd_theme
conda install -c conda-forge sphinx sphinx_rtd_theme sphinx-gallery numpydoc

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

Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Documentation
.. toctree::
:maxdepth: 1

whats-new
why-xarray
faq
examples
Expand All @@ -53,7 +54,6 @@ Documentation
api
internals
contributing
whats-new

See also
--------
Expand Down
75 changes: 42 additions & 33 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,56 @@ What's New
v0.10.1 (unreleased)
--------------------

The minor release includes a number of bug-fixes and backwards compatible enhancements.

Documentation
~~~~~~~~~~~~~

- Added apply_ufunc example to toy weather data page (:issue:`1844`).
- Added a new guide on :ref:`contributing` (:issue:`640`)
By `Joe Hamman <https://github.com/jhamman>`_.
- Added apply_ufunc example to :ref:`toy weather data` (:issue:`1844`).
By `Liam Brannigan <https://github.com/braaannigan>`_.
- New entry `Why don’t aggregations return Python scalars?` in the
:doc:`faq` (:issue:`1726`).
By `0x0L <https://github.com/0x0L>`_.
- Added a new contributors guide (:issue:`640`)
By `Joe Hamman <https://github.com/jhamman>`_.

Enhancements
~~~~~~~~~~~~

**New functions and methods**:

- Added :py:meth:`DataArray.to_iris` and
:py:meth:`DataArray.from_iris` for
converting data arrays to and from Iris_ Cubes with the same data and coordinates
(:issue:`621` and :issue:`37`).
By `Neil Parley <https://github.com/nparley>`_ and `Duncan Watson-Parris <https://github.com/duncanwp>`_.
- Experimental support for using `Zarr`_ as storage layer for xarray
(:issue:`1223`).
By `Ryan Abernathey <https://github.com/rabernat>`_ and
`Joe Hamman <https://github.com/jhamman>`_.
- New :py:meth:`~xarray.DataArray.rank` on arrays and datasets. Requires
bottleneck (:issue:`1731`).
By `0x0L <https://github.com/0x0L>`_.
- ``.dt`` accessor can now ceil, floor and round timestamps to specified frequency.
By `Deepak Cherian <https://github.com/dcherian>`_.

**Plotting enhancements**:

- :func:`xarray.plot.imshow` now handles RGB and RGBA images.
Saturation can be adjusted with ``vmin`` and ``vmax``, or with ``robust=True``.
By `Zac Hatfield-Dodds <https://github.com/Zac-HD>`_.
- :py:func:`~plot.contourf()` learned to contour 2D variables that have both a
1D coordinate (e.g. time) and a 2D coordinate (e.g. depth as a function of
time) (:issue:`1737`).
By `Deepak Cherian <https://github.com/dcherian>`_.
- :py:func:`~plot()` rotates x-axis ticks if x-axis is time.
By `Deepak Cherian <https://github.com/dcherian>`_.
- :py:func:`~plot.line()` can draw multiple lines if provided with a
2D variable.
By `Deepak Cherian <https://github.com/dcherian>`_.

**Other enhancements**:

- Reduce methods such as :py:func:`DataArray.sum()` now handles object-type array.

.. ipython:: python
Expand All @@ -57,39 +94,17 @@ Enhancements
By `Keisuke Fujii <https://github.com/fujiisoup>`_.
- Added nodatavals attribute to DataArray when using :py:func:`~xarray.open_rasterio`. (:issue:`1736`).
By `Alan Snow <https://github.com/snowman2>`_.
- :py:func:`~plot.contourf()` learned to contour 2D variables that have both a
1D co-ordinate (e.g. time) and a 2D co-ordinate (e.g. depth as a function of
time) (:issue:`1737`).
By `Deepak Cherian <https://github.com/dcherian>`_.
- Added :py:meth:`DataArray.to_iris <xray.DataArray.to_iris>` and :py:meth:`DataArray.from_iris <xray.DataArray.from_iris>` for
converting data arrays to and from Iris_ Cubes with the same data and coordinates (:issue:`621` and :issue:`37`).
By `Neil Parley <https://github.com/nparley>`_ and `Duncan Watson-Parris <https://github.com/duncanwp>`_.
- Use ``pandas.Grouper`` class in xarray resample methods rather than the
deprecated ``pandas.TimeGrouper`` class (:issue:`1766`).
By `Joe Hamman <https://github.com/jhamman>`_.
- Support for using `Zarr`_ as storage layer for xarray. (:issue:`1223`).
By `Ryan Abernathey <https://github.com/rabernat>`_ and
`Joe Hamman <https://github.com/jhamman>`_.
- Support for using `Zarr`_ as storage layer for xarray.
By `Ryan Abernathey <https://github.com/rabernat>`_.
- :func:`xarray.plot.imshow` now handles RGB and RGBA images.
Saturation can be adjusted with ``vmin`` and ``vmax``, or with ``robust=True``.
By `Zac Hatfield-Dodds <https://github.com/Zac-HD>`_.
- Experimental support for parsing ENVI metadata to coordinates and attributes
in :py:func:`xarray.open_rasterio`.
By `Matti Eskelinen <https://github.com/maaleske>`_.
- :py:func:`~plot()` learned to rotate x-axis ticks if x-axis is time.
By `Deepak Cherian <https://github.com/dcherian>`_.
- :py:func:`~plot.line()` learned to draw multiple lines if provided with a
2D variable.
By `Deepak Cherian <https://github.com/dcherian>`_.
- Reduce memory usage when decoding a variable with a scale_factor, by
converting 8-bit and 16-bit integers to float32 instead of float64
(:pull:`1840`), and keeping float16 and float32 as float32 (:issue:`1842`).
Correspondingly, encoded variables may also be saved with a smaller dtype.
By `Zac Hatfield-Dodds <https://github.com/Zac-HD>`_.
- `.dt` accessor can now ceil, floor and round timestamps to specified frequency.
By `Deepak Cherian <https://github.com/dcherian>`_.
- Speed of reindexing/alignment with dask array is orders of magnitude faster
when inserting missing values (:issue:`1847`).
By `Stephan Hoyer <https://github.com/shoyer>`_.
Expand All @@ -104,12 +119,6 @@ Enhancements

.. _Iris: http://scitools.org.uk/iris

**New functions/methods**

- New :py:meth:`~xarray.DataArray.rank` on arrays and datasets. Requires
bottleneck (:issue:`1731`).
By `0x0L <https://github.com/0x0L>`_.

Bug fixes
~~~~~~~~~
- Support indexing with a 0d-np.ndarray (:issue:`1921`).
Expand Down Expand Up @@ -138,7 +147,7 @@ Bug fixes
with size one in some dimension can now be plotted, which is good for
exploring satellite imagery (:issue:`1780`).
By `Zac Hatfield-Dodds <https://github.com/Zac-HD>`_.
- Fixed ``UnboundLocalError`` when opening netCDF file `` (:issue:`1781`).
- Fixed ``UnboundLocalError`` when opening netCDF file (:issue:`1781`).
By `Stephan Hoyer <https://github.com/shoyer>`_.
- The ``variables``, ``attrs``, and ``dimensions`` properties have been
deprecated as part of a bug fix addressing an issue where backends were
Expand Down Expand Up @@ -167,7 +176,7 @@ Bug fixes
match pandas (:issue:`1847`). A combination of strings/numbers or
unicode/bytes now promote to object dtype, instead of strings or unicode.
By `Stephan Hoyer <https://github.com/shoyer>`_.
- Fixed bug where :py:meth:`~xarray.DataArray.isnull` was loading data
- Fixed bug where :py:meth:`~xarray.DataArray.isnull` was loading data
stored as dask arrays (:issue:`1937`).
By `Joe Hamman <https://github.com/jhamman>`_.

Expand Down