Skip to content

Commit cdab326

Browse files
authored
fix typos (using codespell) (pydata#6316)
* fix typos (using codespell) * revert 'split'
1 parent 2ab9f36 commit cdab326

32 files changed

+56
-56
lines changed

doc/examples/ROMS_ocean_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"ds = xr.tutorial.open_dataset(\"ROMS_example.nc\", chunks={\"ocean_time\": 1})\n",
7878
"\n",
7979
"# This is a way to turn on chunking and lazy evaluation. Opening with mfdataset, or\n",
80-
"# setting the chunking in the open_dataset would also achive this.\n",
80+
"# setting the chunking in the open_dataset would also achieve this.\n",
8181
"ds"
8282
]
8383
},

doc/gallery/plot_colorbar_center.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
ax4.set_title("Celsius: center=False")
3939
ax4.set_ylabel("")
4040

41-
# Mke it nice
41+
# Make it nice
4242
plt.tight_layout()
4343
plt.show()

doc/internals/how-to-add-new-backend.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ grouped in three types of indexes
317317
:py:class:`~xarray.core.indexing.OuterIndexer` and
318318
:py:class:`~xarray.core.indexing.VectorizedIndexer`.
319319
This implies that the implementation of the method ``__getitem__`` can be tricky.
320-
In oder to simplify this task, Xarray provides a helper function,
320+
In order to simplify this task, Xarray provides a helper function,
321321
:py:func:`~xarray.core.indexing.explicit_indexing_adapter`, that transforms
322322
all the input ``indexer`` types (`basic`, `outer`, `vectorized`) in a tuple
323323
which is interpreted correctly by your backend.
@@ -426,7 +426,7 @@ The ``OUTER_1VECTOR`` indexing shall supports number, slices and at most one
426426
list. The behaviour with the list shall be the same of ``OUTER`` indexing.
427427

428428
If you support more complex indexing as `explicit indexing` or
429-
`numpy indexing`, you can have a look to the implemetation of Zarr backend and Scipy backend,
429+
`numpy indexing`, you can have a look to the implementation of Zarr backend and Scipy backend,
430430
currently available in :py:mod:`~xarray.backends` module.
431431

432432
.. _RST preferred_chunks:

doc/internals/zarr-encoding-spec.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ for the storage of the NetCDF data model in Zarr; see
1414
discussion.
1515

1616
First, Xarray can only read and write Zarr groups. There is currently no support
17-
for reading / writting individual Zarr arrays. Zarr groups are mapped to
17+
for reading / writing individual Zarr arrays. Zarr groups are mapped to
1818
Xarray ``Dataset`` objects.
1919

2020
Second, from Xarray's point of view, the key difference between

doc/roadmap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ A cleaner model would be to elevate ``indexes`` to an explicit part of
112112
xarray's data model, e.g., as attributes on the ``Dataset`` and
113113
``DataArray`` classes. Indexes would need to be propagated along with
114114
coordinates in xarray operations, but will no longer would need to have
115-
a one-to-one correspondance with coordinate variables. Instead, an index
115+
a one-to-one correspondence with coordinate variables. Instead, an index
116116
should be able to refer to multiple (possibly multidimensional)
117117
coordinates that define it. See `GH
118118
1603 <https://github.com/pydata/xarray/issues/1603>`__ for full details

doc/user-guide/time-series.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ You can also select a particular time by indexing with a
101101
102102
ds.sel(time=datetime.time(12))
103103
104-
For more details, read the pandas documentation and the section on `Indexing Using Datetime Components <datetime_component_indexing>`_ (i.e. using the ``.dt`` acessor).
104+
For more details, read the pandas documentation and the section on `Indexing Using Datetime Components <datetime_component_indexing>`_ (i.e. using the ``.dt`` accessor).
105105

106106
.. _dt_accessor:
107107

doc/whats-new.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Bug fixes
138138
By `Michael Delgado <https://github.com/delgadom>`_.
139139
- `dt.season <https://docs.xarray.dev/en/stable/generated/xarray.DataArray.dt.season.html>`_ can now handle NaN and NaT. (:pull:`5876`).
140140
By `Pierre Loicq <https://github.com/pierreloicq>`_.
141-
- Determination of zarr chunks handles empty lists for encoding chunks or variable chunks that occurs in certain cirumstances (:pull:`5526`). By `Chris Roat <https://github.com/chrisroat>`_.
141+
- Determination of zarr chunks handles empty lists for encoding chunks or variable chunks that occurs in certain circumstances (:pull:`5526`). By `Chris Roat <https://github.com/chrisroat>`_.
142142

143143
Internal Changes
144144
~~~~~~~~~~~~~~~~
@@ -706,7 +706,7 @@ Breaking changes
706706
By `Alessandro Amici <https://github.com/alexamici>`_.
707707
- Functions that are identities for 0d data return the unchanged data
708708
if axis is empty. This ensures that Datasets where some variables do
709-
not have the averaged dimensions are not accidentially changed
709+
not have the averaged dimensions are not accidentally changed
710710
(:issue:`4885`, :pull:`5207`).
711711
By `David Schwörer <https://github.com/dschwoerer>`_.
712712
- :py:attr:`DataArray.coarsen` and :py:attr:`Dataset.coarsen` no longer support passing ``keep_attrs``
@@ -1419,7 +1419,7 @@ New Features
14191419
Enhancements
14201420
~~~~~~~~~~~~
14211421
- Performance improvement of :py:meth:`DataArray.interp` and :py:func:`Dataset.interp`
1422-
We performs independant interpolation sequentially rather than interpolating in
1422+
We performs independent interpolation sequentially rather than interpolating in
14231423
one large multidimensional space. (:issue:`2223`)
14241424
By `Keisuke Fujii <https://github.com/fujiisoup>`_.
14251425
- :py:meth:`DataArray.interp` now support interpolations over chunked dimensions (:pull:`4155`). By `Alexandre Poux <https://github.com/pums974>`_.
@@ -2770,7 +2770,7 @@ Breaking changes
27702770
- ``Dataset.T`` has been removed as a shortcut for :py:meth:`Dataset.transpose`.
27712771
Call :py:meth:`Dataset.transpose` directly instead.
27722772
- Iterating over a ``Dataset`` now includes only data variables, not coordinates.
2773-
Similarily, calling ``len`` and ``bool`` on a ``Dataset`` now
2773+
Similarly, calling ``len`` and ``bool`` on a ``Dataset`` now
27742774
includes only data variables.
27752775
- ``DataArray.__contains__`` (used by Python's ``in`` operator) now checks
27762776
array data, not coordinates.
@@ -3908,7 +3908,7 @@ Bug fixes
39083908
(:issue:`1606`).
39093909
By `Joe Hamman <https://github.com/jhamman>`_.
39103910

3911-
- Fix bug when using ``pytest`` class decorators to skiping certain unittests.
3911+
- Fix bug when using ``pytest`` class decorators to skipping certain unittests.
39123912
The previous behavior unintentionally causing additional tests to be skipped
39133913
(:issue:`1531`). By `Joe Hamman <https://github.com/jhamman>`_.
39143914

@@ -5656,7 +5656,7 @@ Bug fixes
56565656
- Several bug fixes related to decoding time units from netCDF files
56575657
(:issue:`316`, :issue:`330`). Thanks Stefan Pfenninger!
56585658
- xray no longer requires ``decode_coords=False`` when reading datasets with
5659-
unparseable coordinate attributes (:issue:`308`).
5659+
unparsable coordinate attributes (:issue:`308`).
56605660
- Fixed ``DataArray.loc`` indexing with ``...`` (:issue:`318`).
56615661
- Fixed an edge case that resulting in an error when reindexing
56625662
multi-dimensional variables (:issue:`315`).

xarray/backends/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def sync(self, compute=True):
160160
import dask.array as da
161161

162162
# TODO: consider wrapping targets with dask.delayed, if this makes
163-
# for any discernable difference in perforance, e.g.,
163+
# for any discernible difference in perforance, e.g.,
164164
# targets = [dask.delayed(t) for t in self.targets]
165165

166166
delayed_store = da.store(

xarray/backends/file_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _acquire_with_cache_info(self, needs_lock=True):
204204
kwargs["mode"] = self._mode
205205
file = self._opener(*self._args, **kwargs)
206206
if self._mode == "w":
207-
# ensure file doesn't get overriden when opened again
207+
# ensure file doesn't get overridden when opened again
208208
self._mode = "a"
209209
self._cache[self._key] = file
210210
return file, False

xarray/backends/pseudonetcdf_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class PseudoNetCDFBackendEntrypoint(BackendEntrypoint):
105105
available = has_pseudonetcdf
106106

107107
# *args and **kwargs are not allowed in open_backend_dataset_ kwargs,
108-
# unless the open_dataset_parameters are explicity defined like this:
108+
# unless the open_dataset_parameters are explicitly defined like this:
109109
open_dataset_parameters = (
110110
"filename_or_obj",
111111
"mask_and_scale",

0 commit comments

Comments
 (0)