-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7a75c9
commit 12b9a05
Showing
4 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ python: | |
path: . | ||
extra_requirements: | ||
- docs | ||
- complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.. _executors: | ||
|
||
Executors | ||
========= | ||
|
||
``rechunker`` plans can be executed by a variety of executors. The default is ``dask``, which executes the plan on a Dask cluster. | ||
|
||
For example, we can use :ref:`rechunker.executors.python.PythonExecutor` to execute a plan as a simple Python for loop, which might be useful for debugging. | ||
|
||
.. code-block:: python | ||
>>> import zarr | ||
>>> from rechunker import rechunk | ||
>>> source = zarr.ones((4, 4), chunks=(2, 2), store="source.zarr") | ||
>>> intermediate = "intermediate.zarr" | ||
>>> target = "target.zarr" | ||
>>> rechunked = rechunk( | ||
... source, target_chunks=(4, 1), target_store=target, | ||
... max_mem=256000000, temp_store=intermediate, | ||
... executor="python" | ||
... ) | ||
>>> rechunked.execute() | ||
.. note:: | ||
|
||
Most executors will require installing additional optional | ||
dependencies. | ||
|
||
|
||
See :ref:`api.executors` for a list of all the different executors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters