Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Nov 5, 2024
1 parent 5ca92dd commit 591a223
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog

X.Y.Z (DD-MM-YYYY)
------------------
* Change ``partition_chunks`` to ``preferred_chunks`` (:pr:`44`)
* Allow arcae to vary in the 0.2.x range (:pr:`42`)
* Pin xarray to 2024.9.0 (:pr:`42`)
* Add test case for irregular grids (:pr:`39`, :pr:`40`, :pr:`41`)
Expand Down
2 changes: 1 addition & 1 deletion doc/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ to specify different chunking setups for each partition.
(("DATA_DESC_ID", 1),): {"time": 3, "frequency": 2}})
See the ``preferred_chunks`` argument of
:meth:`xarray_ms.backend.msv2.entrypoint.MSv2EntryPoint.open_datatree`
:meth:`~xarray_ms.backend.msv2.entrypoint.MSv2EntryPoint.open_datatree`
for more information.

.. ipython:: python
Expand Down
9 changes: 6 additions & 3 deletions xarray_ms/backend/msv2/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,12 @@ def open_datatree(
"D=0,F=1": {{"time": 20, "frequency": 32}},
}}
.. note:: This argument should be used in conjunction with
the reserved ``chunks`` argument used by xarray to control chunking
in Datasets and DataTrees. See preferred_chunk_sizes_ for more information.
.. note:: xarray's reserved ``chunks`` argument must be specified in order
to enable this functionality and enable fine-grained chunking
in Datasets and DataTrees.
See xarray's backend documentation on
`Preferred chunk sizes <preferred_chunk_sizes_>`_
for more information.
drop_variables: Variables to drop from the dataset.
partition_columns: The columns to use for partitioning the Measurement set.
Expand Down

0 comments on commit 591a223

Please sign in to comment.