xarray-ms 0.3.2__tar.gz → 0.3.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. xarray_ms-0.3.7/.github/ISSUE_TEMPLATE.md +15 -0
  2. xarray_ms-0.3.7/.github/PULL_REQUEST_TEMPLATE.md +16 -0
  3. xarray_ms-0.3.7/.github/dependabot.yml +11 -0
  4. xarray_ms-0.3.7/.github/workflows/ci.yml +137 -0
  5. xarray_ms-0.3.7/.github/workflows/pre-commit.yml +15 -0
  6. xarray_ms-0.3.7/.github/workflows/readthedocs.yml +22 -0
  7. xarray_ms-0.3.7/.gitignore +160 -0
  8. xarray_ms-0.3.7/.pre-commit-config.yaml +26 -0
  9. xarray_ms-0.3.7/.readthedocs.yaml +23 -0
  10. xarray_ms-0.3.7/PKG-INFO +47 -0
  11. xarray_ms-0.3.7/doc/Makefile +20 -0
  12. xarray_ms-0.3.7/doc/make.bat +35 -0
  13. xarray_ms-0.3.7/doc/source/api.rst +31 -0
  14. xarray_ms-0.3.7/doc/source/changelog.rst +171 -0
  15. xarray_ms-0.3.7/doc/source/conf.py +83 -0
  16. xarray_ms-0.3.7/doc/source/index.rst +19 -0
  17. xarray_ms-0.3.7/doc/source/install.rst +90 -0
  18. xarray_ms-0.3.7/doc/source/introduction.rst +76 -0
  19. xarray_ms-0.3.7/doc/source/links.rst +19 -0
  20. xarray_ms-0.3.7/doc/source/partitioning.rst +184 -0
  21. xarray_ms-0.3.7/doc/source/roadmap.rst +69 -0
  22. xarray_ms-0.3.7/doc/source/tutorial.rst +172 -0
  23. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/pyproject.toml +37 -41
  24. xarray_ms-0.3.7/tests/conftest.py +63 -0
  25. xarray_ms-0.3.7/tests/msv4_test_corpus/__init__.py +0 -0
  26. xarray_ms-0.3.7/tests/msv4_test_corpus/conftest.py +161 -0
  27. xarray_ms-0.3.7/tests/msv4_test_corpus/test_msv_corpus.py +75 -0
  28. xarray_ms-0.3.7/tests/test_antenna.py +140 -0
  29. xarray_ms-0.3.7/tests/test_backend.py +239 -0
  30. xarray_ms-0.3.7/tests/test_basic.py +31 -0
  31. xarray_ms-0.3.7/tests/test_encoding.py +47 -0
  32. xarray_ms-0.3.7/tests/test_field_and_source.py +21 -0
  33. xarray_ms-0.3.7/tests/test_github.py +24 -0
  34. xarray_ms-0.3.7/tests/test_imputation.py +110 -0
  35. xarray_ms-0.3.7/tests/test_multiton.py +70 -0
  36. xarray_ms-0.3.7/tests/test_read.py +443 -0
  37. xarray_ms-0.3.7/tests/test_structure.py +147 -0
  38. xarray_ms-0.3.7/tests/test_utils.py +37 -0
  39. xarray_ms-0.3.7/tests/test_zarr_roundtrip.py +21 -0
  40. xarray_ms-0.3.7/xarray_ms/__init__.py +0 -0
  41. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/backend/msv2/array.py +13 -1
  42. xarray_ms-0.3.7/xarray_ms/backend/msv2/encoders.py +449 -0
  43. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/backend/msv2/entrypoint.py +64 -6
  44. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/backend/msv2/entrypoint_utils.py +27 -9
  45. xarray_ms-0.3.7/xarray_ms/backend/msv2/factories/__init__.py +11 -0
  46. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/backend/msv2/factories/antenna.py +41 -40
  47. xarray_ms-0.3.7/xarray_ms/backend/msv2/factories/core.py +23 -0
  48. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/backend/msv2/factories/correlated.py +208 -55
  49. xarray_ms-0.3.7/xarray_ms/backend/msv2/factories/field_and_source.py +71 -0
  50. xarray_ms-0.3.7/xarray_ms/backend/msv2/imputation.py +244 -0
  51. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/backend/msv2/structure.py +4 -5
  52. xarray_ms-0.3.7/xarray_ms/backend/msv2/table_utils.py +19 -0
  53. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/casa_types.py +55 -10
  54. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/errors.py +27 -0
  55. xarray_ms-0.3.7/xarray_ms/testing/__init__.py +0 -0
  56. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/testing/simulator.py +12 -3
  57. xarray_ms-0.3.7/xarray_ms/testing/utils.py +38 -0
  58. xarray_ms-0.3.2/PKG-INFO +0 -41
  59. xarray_ms-0.3.2/xarray_ms/backend/msv2/encoders.py +0 -199
  60. xarray_ms-0.3.2/xarray_ms/backend/msv2/factories/__init__.py +0 -4
  61. xarray_ms-0.3.2/xarray_ms/backend/msv2/imputation.py +0 -124
  62. xarray_ms-0.3.2/xarray_ms/testing/utils.py +0 -15
  63. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/LICENSE +0 -0
  64. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/README.rst +0 -0
  65. /xarray_ms-0.3.2/xarray_ms/__init__.py → /xarray_ms-0.3.7/hello.txt +0 -0
  66. {xarray_ms-0.3.2/xarray_ms/testing → xarray_ms-0.3.7/tests}/__init__.py +0 -0
  67. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/backend/msv2/partition.py +0 -0
  68. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/msv4_types.py +0 -0
  69. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/multiton.py +0 -0
  70. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/query.py +0 -0
  71. {xarray_ms-0.3.2 → xarray_ms-0.3.7}/xarray_ms/utils.py +0 -0
@@ -0,0 +1,15 @@
1
+ - xarray-ms version:
2
+ - Python version:
3
+ - Operating System:
4
+
5
+ ### Description
6
+
7
+ Describe what you were trying to accomplish.
8
+ Tell us what happened, what went wrong, and what you expected to happen.
9
+
10
+ ### Reproducer and Error Logs
11
+
12
+ ```
13
+ Paste the command(s) you ran and the output.
14
+ If there was a crash, please include the traceback here.
15
+ ```
@@ -0,0 +1,16 @@
1
+ <!--
2
+ Consider opening an enhancement issue
3
+ if the change is large or complex.
4
+ https://github.com/ratt-ru/xarray-ms/issues/new/choose
5
+
6
+ Development setup information is available at the following url:
7
+ https://xarray-ms.readthedocs.io/en/latest/install.html#development
8
+ -->
9
+
10
+ Thanks for contributing to xarray-ms.
11
+
12
+ We would appreciate it if you could add:
13
+
14
+ - [ ] Test Cases covering your PR.
15
+ - [ ] Documentation.
16
+ - [ ] A Changelog entry in `doc/source/changelog.rst`.
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "github-actions" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
@@ -0,0 +1,137 @@
1
+ name: Continuous Integration
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "*"
9
+ pull_request:
10
+ schedule:
11
+ - cron: '30 2 * * 1,4' # Every Monday and Thursday @ 2h30am UTC
12
+
13
+ jobs:
14
+ check_skip:
15
+ runs-on: ubuntu-latest
16
+ if: |
17
+ !contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title, github.event.pull_request.body), '[skip ci]')
18
+ steps:
19
+ - run: |
20
+ cat <<'MESSAGE'
21
+ github.event_name: ${{ toJson(github.event_name) }}
22
+ github.event:
23
+ ${{ toJson(github.event) }}
24
+ MESSAGE
25
+ test:
26
+ needs: check_skip
27
+ runs-on: ubuntu-latest
28
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
29
+ strategy:
30
+ fail-fast: false
31
+ matrix:
32
+ os: ["ubuntu-22.04", "macos-13", "macos-14", "macos-15"]
33
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
34
+ is_main_or_release:
35
+ - ${{ contains(github.ref, 'main') || startsWith(github.ref, 'refs/tags')}}
36
+ exclude:
37
+ # Don't test on macos-{13,14} in PR's
38
+ - is_main_or_release: false
39
+ os: "macos-13"
40
+ - is_main_or_release: false
41
+ os: "macos-14"
42
+ # Don't test on 3.10 - 3.12 in PR's
43
+ - is_main_or_release: false
44
+ python-version: "3.10"
45
+ - is_main_or_release: false
46
+ python-version: "3.11"
47
+ - is_main_or_release: false
48
+ python-version: "3.12"
49
+ # Don't test on macos on 3.10 - 3.12 in PRs
50
+ - os: "macos-13"
51
+ python-version: "3.10"
52
+ - os: "macos-13"
53
+ python-version: "3.11"
54
+ - os: "macos-13"
55
+ python-version: "3.12"
56
+ - os: "macos-14"
57
+ python-version: "3.10"
58
+ - os: "macos-14"
59
+ python-version: "3.11"
60
+ - os: "macos-14"
61
+ python-version: "3.12"
62
+ - os: "macos-15"
63
+ python-version: "3.10"
64
+ - os: "macos-15"
65
+ python-version: "3.11"
66
+ - os: "macos-15"
67
+ python-version: "3.12"
68
+
69
+
70
+ steps:
71
+ - name: Set up Python ${{ matrix.python-version }}
72
+ uses: actions/setup-python@v6
73
+ with:
74
+ python-version: ${{ matrix.python-version }}
75
+
76
+ - name: Checkout source
77
+ uses: actions/checkout@v5
78
+ with:
79
+ fetch-depth: 1
80
+
81
+ - name: Download metadata
82
+ run: curl https://downloadnrao.org/file.download.json > metadata.json
83
+
84
+ - name: Load cached MSv4 Test Corpus
85
+ id: load-cached-msv4-test-corpus
86
+ uses: actions/cache@v4
87
+ with:
88
+ key: msv4-test-corpus-${{ hashFiles('metadata.json')}}
89
+ path: ~/.cache/xarray-ms/msv4-test-data
90
+
91
+ - name: Create virtual environment
92
+ run: |
93
+ python -m venv .venv
94
+ source .venv/bin/activate
95
+ pip install -U pip
96
+
97
+ - name: Install xarray-ms
98
+ run: |
99
+ source .venv/bin/activate
100
+ pip install .[testing]
101
+
102
+ - name: Test xarray-ms
103
+ run: |
104
+ source .venv/bin/activate
105
+ py.test -s -vvv tests/ -Werror --msv4_test_corpus
106
+
107
+ # - name: Debug with tmate on failure
108
+ # if: ${{ failure() }}
109
+ # uses: mxschmitt/action-tmate@v3
110
+
111
+ deploy:
112
+ needs: [test]
113
+ runs-on: ubuntu-latest
114
+ environment:
115
+ name: pypi
116
+ url: https:/pypi.org/p/xarray-ms
117
+ permissions:
118
+ id-token: write
119
+ steps:
120
+ - name: Set up Python 3.11
121
+ uses: actions/setup-python@v6
122
+ with:
123
+ python-version: 3.11
124
+
125
+ - name: Checkout source
126
+ uses: actions/checkout@v5
127
+ with:
128
+ fetch-depth: 1
129
+
130
+ - name: Build distributions
131
+ run: |
132
+ pip install -U pip build
133
+ python -m build --sdist --wheel
134
+
135
+ - name: Publish distribution 📦 to PyPI
136
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
137
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,15 @@
1
+ name: pre-commit
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ pre-commit:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v5
10
+ with:
11
+ fetch-depth: 1
12
+ - uses: actions/setup-python@v6
13
+ with:
14
+ python-version: 3.11
15
+ - uses: pre-commit/action@v3.0.1
@@ -0,0 +1,22 @@
1
+ # .github/workflows/documentation-links.yml
2
+
3
+ name: readthedocs/actions
4
+ on:
5
+ pull_request_target:
6
+ types:
7
+ - opened
8
+ # Execute this action only on PRs that touch
9
+ # documentation files.
10
+ # paths:
11
+ # - "doc/**"
12
+
13
+ permissions:
14
+ pull-requests: write
15
+
16
+ jobs:
17
+ documentation-links:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: readthedocs/actions/preview@v1
21
+ with:
22
+ project-slug: "xarray-ms"
@@ -0,0 +1,160 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
@@ -0,0 +1,26 @@
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v5.0.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: end-of-file-fixer
9
+ - id: check-yaml
10
+ - id: check-added-large-files
11
+ - repo: https://github.com/astral-sh/ruff-pre-commit
12
+ rev: v0.12.3
13
+ hooks:
14
+ - id: ruff
15
+ # Handle imports, see
16
+ # https://github.com/astral-sh/ruff/issues/8232
17
+ # https://github.com/astral-sh/ruff/issues/10882
18
+ args: [ --fix, --extend-select, I ]
19
+ - id: ruff-format
20
+ name: ruff format
21
+ - repo: https://github.com/pre-commit/mirrors-mypy
22
+ rev: v1.17.0
23
+ hooks:
24
+ - id: mypy
25
+ name: mypy
26
+ additional_dependencies: [types-requests]
@@ -0,0 +1,23 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ build:
9
+ os: ubuntu-24.04
10
+ tools:
11
+ python: "3.12"
12
+
13
+ python:
14
+ install:
15
+ - method: pip
16
+ path: .
17
+ extra_requirements:
18
+ - doc
19
+ - testing
20
+
21
+ # Build documentation in the "docs/" directory with Sphinx
22
+ sphinx:
23
+ configuration: doc/source/conf.py
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.4
2
+ Name: xarray-ms
3
+ Version: 0.3.7
4
+ Summary: xarray MSv4 views over MSv2 Measurement Sets
5
+ Author-email: Simon Perkins <simon.perkins@gmail.com>
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.10
8
+ Requires-Dist: arcae<0.4.0,>=0.3.2
9
+ Requires-Dist: cacheout>=0.16.0
10
+ Requires-Dist: typing-extensions>=4.12.2
11
+ Requires-Dist: xarray<2025.9.1,>=2025.0
12
+ Provides-Extra: dev
13
+ Requires-Dist: pre-commit>=3.8.0; extra == 'dev'
14
+ Requires-Dist: tbump>=6.11.0; extra == 'dev'
15
+ Provides-Extra: doc
16
+ Requires-Dist: ipython>=8.27.0; extra == 'doc'
17
+ Requires-Dist: pydata-sphinx-theme>=0.15.4; extra == 'doc'
18
+ Requires-Dist: pygments>=2.18.0; extra == 'doc'
19
+ Requires-Dist: sphinx-copybutton>=0.5.2; extra == 'doc'
20
+ Requires-Dist: sphinx>=8.0.2; extra == 'doc'
21
+ Requires-Dist: sphinxcontrib-spelling; extra == 'doc'
22
+ Provides-Extra: testing
23
+ Requires-Dist: dask>=2024.5.0; extra == 'testing'
24
+ Requires-Dist: distributed>=2024.5.0; extra == 'testing'
25
+ Requires-Dist: platformdirs>=4.3.8; extra == 'testing'
26
+ Requires-Dist: pytest>=8.0.0; extra == 'testing'
27
+ Requires-Dist: zarr<3.0.0,>=2.18.3; extra == 'testing'
28
+ Description-Content-Type: text/x-rst
29
+
30
+ xarray-ms
31
+ =========
32
+
33
+ |CI Status| |Doc Status| |Version Status|
34
+
35
+ xarray-ms presents an xarray Measurement Set v4 view over a CASA Measurement Set v2.
36
+ See the documentation_ for further information.
37
+
38
+ .. _documentation: https://xarray-ms.readthedocs.io
39
+ .. |CI Status| image:: https://github.com/ratt-ru/xarray-ms/actions/workflows/ci.yml/badge.svg
40
+ :target: https://github.com/ratt-ru/xarray-ms/actions/workflows/ci.yml
41
+ :alt: Continuous Integration Status
42
+ .. |Doc Status| image:: https://readthedocs.org/projects/xarray-ms/badge/?version=latest
43
+ :target: https://xarray-ms.readthedocs.io/en/latest/?badge=latest
44
+ :alt: Documentation Status
45
+ .. |Version Status| image:: https://img.shields.io/pypi/v/xarray-ms.svg
46
+ :target: https://pypi.python.org/pypi/xarray-ms
47
+ :alt: Version Status
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=source
11
+ set BUILDDIR=build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
@@ -0,0 +1,31 @@
1
+ API
2
+ ===
3
+
4
+ Opening Measurement Sets
5
+ ------------------------
6
+
7
+ The standard :func:`xarray.open_datatree` method should
8
+ be used to open a :class:`~xarray.DataTree` interface
9
+ to the underlying Measurement Set data.
10
+
11
+ .. code-block:: python
12
+
13
+ >>> datatree = xarray.open_datatree("/data/data.ms", partition_schema=["FIELD_ID"])
14
+
15
+ These methods defer to the relevant methods on the
16
+ `Entrypoint Class <entrypoint-class_>`_.
17
+ Consult the method signatures for information on extra
18
+ arguments that can be passed.
19
+
20
+
21
+ .. _entrypoint-class:
22
+
23
+ Entrypoint Class
24
+ ----------------
25
+
26
+ Entrypoint class for the MSv2 backend.
27
+
28
+ .. autoclass:: xarray_ms.backend.msv2.entrypoint.MSv2EntryPoint
29
+ :members: open_datatree, open_dataset
30
+
31
+ .. _partitioning-schema: