Skip to content

Commit

Permalink
Fix typos found by codespell (#8457)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Nov 16, 2023
1 parent 5355166 commit 72abfdf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions doc/internals/interoperability.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ it is entirely possible today to:
- track the physical units of the data through computations (e.g via `pint-xarray <https://pint-xarray.readthedocs.io/en/stable/>`_),
- query the data via custom index logic optimized for specific applications (e.g. an :py:class:`~xarray.Index` object backed by a KDTree structure),
- attach domain-specific logic via accessor methods (e.g. to understand geographic Coordinate Reference System metadata),
- organize hierarchical groups of xarray data in a :py:class:`~datatree.DataTree` (e.g. to treat heterogenous simulation and observational data together during analysis).
- organize hierarchical groups of xarray data in a :py:class:`~datatree.DataTree` (e.g. to treat heterogeneous simulation and observational data together during analysis).

All of these features can be provided simultaneously, using libaries compatible with the rest of the scientific python ecosystem.
All of these features can be provided simultaneously, using libraries compatible with the rest of the scientific python ecosystem.
In this situation xarray would be essentially a thin wrapper acting as pure-python framework, providing a common interface and
separation of concerns via various domain-agnostic abstractions.

Expand Down
2 changes: 1 addition & 1 deletion xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -10075,7 +10075,7 @@ def groupby(
Tutorial on :py:func:`~xarray.Dataset.Groupby` for windowed computation.
:doc:`xarray-tutorial:fundamentals/03.2_groupby_with_xarray`
Tutorial on :py:func:`~xarray.Dataset.Groupby` demonstrating reductions, transformation and comparision with :py:func:`~xarray.Dataset.resample`.
Tutorial on :py:func:`~xarray.Dataset.Groupby` demonstrating reductions, transformation and comparison with :py:func:`~xarray.Dataset.resample`.
Dataset.groupby_bins
DataArray.groupby
Expand Down
2 changes: 1 addition & 1 deletion xarray/tests/test_duck_array_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def test_reduce(dim_num, dtype, dask, func, skipna, aggdim):
expected = getattr(da.compute(), func)(skipna=skipna, dim=aggdim)
assert_allclose(actual, expected, rtol=rtol)

# make sure the compatiblility with pandas' results.
# make sure the compatibility with pandas' results.
if func in ["var", "std"]:
expected = series_reduce(da, func, skipna=skipna, dim=aggdim, ddof=0)
assert_allclose(actual, expected, rtol=rtol)
Expand Down
2 changes: 1 addition & 1 deletion xarray/util/generate_aggregations.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def generate_method(self, method):

yield TEMPLATE_RETURNS.format(**template_kwargs)

# we want Datset.count to refer to DataArray.count
# we want Dataset.count to refer to DataArray.count
# but we also want DatasetGroupBy.count to refer to Dataset.count
# The generic aggregations have self.cls == ''
others = (
Expand Down

0 comments on commit 72abfdf

Please sign in to comment.