Skip to content

Commit 2342b50

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1f02de1 commit 2342b50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ information on plugins.
325325
How to support lazy loading
326326
+++++++++++++++++++++++++++
327327

328-
If you want to make your backend effective with big datasets, then you should take advantage of xarray's
328+
If you want to make your backend effective with big datasets, then you should take advantage of xarray's
329329
support for lazy loading and indexing.
330330

331331
Basically, when your backend constructs the ``Variable`` objects,
@@ -334,6 +334,7 @@ variables with a custom :py:class:`~xarray.backends.BackendArray` subclass that
334334
See the example below:
335335

336336
.. code-block:: python
337+
337338
backend_array = MyBackendArray()
338339
data = indexing.LazilyIndexedArray(backend_array)
339340
var = xr.Variable(dims, data, attrs=attrs, encoding=encoding)
@@ -424,7 +425,7 @@ Backends can also optionally support loading data asynchronously via xarray's as
424425
To support async loading the `BackendArray` subclass must additionally implement the ``BackendArray.async_getitem`` method.
425426

426427
Note that implementing this method is only necessary if you want to be able to load data from different xarray objects concurrently.
427-
Even without this method your ``BackendArray`` implementation is still free to concurrently load chunks of data for a single ``Variable`` itself,
428+
Even without this method your ``BackendArray`` implementation is still free to concurrently load chunks of data for a single ``Variable`` itself,
428429
so long as it does so behind the synchronous ``__getitem__`` interface.
429430

430431
Dask support

0 commit comments

Comments
 (0)