@@ -325,7 +325,7 @@ information on plugins.
325
325
How to support lazy loading
326
326
+++++++++++++++++++++++++++
327
327
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
329
329
support for lazy loading and indexing.
330
330
331
331
Basically, when your backend constructs the ``Variable `` objects,
@@ -334,6 +334,7 @@ variables with a custom :py:class:`~xarray.backends.BackendArray` subclass that
334
334
See the example below:
335
335
336
336
.. code-block :: python
337
+
337
338
backend_array = MyBackendArray()
338
339
data = indexing.LazilyIndexedArray(backend_array)
339
340
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
424
425
To support async loading the `BackendArray ` subclass must additionally implement the ``BackendArray.async_getitem `` method.
425
426
426
427
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,
428
429
so long as it does so behind the synchronous ``__getitem__ `` interface.
429
430
430
431
Dask support
0 commit comments