xarray-ms 0.5.3__tar.gz → 0.5.4__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.
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/PKG-INFO +1 -1
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/changelog.rst +4 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/conf.py +1 -1
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/pyproject.toml +2 -2
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_backend.py +12 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/entrypoint.py +12 -2
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/errors.py +4 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/ISSUE_TEMPLATE.md +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/dependabot.yml +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/workflows/ci.yml +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/workflows/pre-commit.yml +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/workflows/readthedocs.yml +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.gitignore +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.pre-commit-config.yaml +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.readthedocs.yaml +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/LICENSE +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/README.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/Makefile +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/make.bat +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/api.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/index.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/install.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/introduction.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/links.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/partitioning.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/roadmap.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/tutorial.rst +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/hello.txt +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/__init__.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/conftest.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/msv4_test_corpus/__init__.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/msv4_test_corpus/conftest.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/msv4_test_corpus/test_msv_corpus.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_antenna.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_basic.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_field_and_source.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_github.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_imputation.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_measures.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_multiton.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_read.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_structure.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_table_utils.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_utils.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_zarr_roundtrip.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/__init__.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/array.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/entrypoint_utils.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/__init__.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/antenna.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/core.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/correlated.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/field_and_source.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/imputation.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/measures_adapters.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/measures_encoders.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/partition.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/structure.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/table_utils.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/casa_types.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/msv4_types.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/multiton.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/query.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/testing/__init__.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/testing/simulator.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/testing/utils.py +0 -0
- {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/utils.py +0 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
project = "xarray-ms"
|
|
12
12
|
copyright = "2024 - 2025 NRF (SARAO) and Rhodes University (RATT) Centre"
|
|
13
13
|
author = "Simon Perkins"
|
|
14
|
-
release = "0.5.
|
|
14
|
+
release = "0.5.4"
|
|
15
15
|
|
|
16
16
|
# -- General configuration ---------------------------------------------------
|
|
17
17
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "xarray-ms"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.4"
|
|
4
4
|
description = "xarray MSv4 views over MSv2 Measurement Sets"
|
|
5
5
|
authors = [{name = "Simon Perkins", email = "simon.perkins@gmail.com"}]
|
|
6
6
|
readme = "README.rst"
|
|
@@ -55,7 +55,7 @@ extend-select = ["I"]
|
|
|
55
55
|
# github_url = "https://github.com/<user or organization>/<project>/"
|
|
56
56
|
|
|
57
57
|
[tool.tbump.version]
|
|
58
|
-
current = "0.5.
|
|
58
|
+
current = "0.5.4"
|
|
59
59
|
|
|
60
60
|
# Example of a semver regexp.
|
|
61
61
|
# Make sure this matches current_version before
|
|
@@ -7,6 +7,7 @@ import xarray.testing as xt
|
|
|
7
7
|
from numpy.testing import assert_array_equal
|
|
8
8
|
|
|
9
9
|
from xarray_ms.backend.msv2.entrypoint import MSv2EntryPoint
|
|
10
|
+
from xarray_ms.errors import IgnoredArgument
|
|
10
11
|
from xarray_ms.testing.utils import id_string, prune_datetime_structures
|
|
11
12
|
|
|
12
13
|
|
|
@@ -237,3 +238,14 @@ def test_open_datatree_chunking(simmed_ms):
|
|
|
237
238
|
}
|
|
238
239
|
|
|
239
240
|
assert ncdt.identical(prune_datetime_structures(dt))
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
@pytest.mark.parametrize(
|
|
244
|
+
"simmed_ms",
|
|
245
|
+
[{"name": "ignored_kwargs.ms"}],
|
|
246
|
+
indirect=True,
|
|
247
|
+
)
|
|
248
|
+
def test_ignored_kwargs_warning(simmed_ms):
|
|
249
|
+
with pytest.warns(IgnoredArgument, match="unsupported_kwarg"):
|
|
250
|
+
dt = xarray.open_datatree(simmed_ms, unsupported_kwarg=True)
|
|
251
|
+
assert isinstance(dt, xarray.DataTree)
|
|
@@ -25,7 +25,11 @@ from xarray_ms.backend.msv2.structure import (
|
|
|
25
25
|
MSv2Structure,
|
|
26
26
|
MSv2StructureFactory,
|
|
27
27
|
)
|
|
28
|
-
from xarray_ms.errors import
|
|
28
|
+
from xarray_ms.errors import (
|
|
29
|
+
FrameConversionWarning,
|
|
30
|
+
IgnoredArgument,
|
|
31
|
+
InvalidPartitionKey,
|
|
32
|
+
)
|
|
29
33
|
from xarray_ms.msv4_types import CORRELATED_DATASET_TYPES
|
|
30
34
|
from xarray_ms.multiton import Multiton
|
|
31
35
|
from xarray_ms.utils import format_docstring
|
|
@@ -452,6 +456,13 @@ class MSv2EntryPoint(BackendEntrypoint):
|
|
|
452
456
|
"""Create a dictionary of :class:`~xarray.Dataset` presenting an MSv4 view
|
|
453
457
|
over a partition of a MSv2 CASA Measurement Set"""
|
|
454
458
|
|
|
459
|
+
if kwargs:
|
|
460
|
+
warnings.warn(
|
|
461
|
+
f"xarray-ms does not support the following arguments and will ignore them: "
|
|
462
|
+
f"{sorted(kwargs)}",
|
|
463
|
+
IgnoredArgument,
|
|
464
|
+
)
|
|
465
|
+
|
|
455
466
|
if isinstance(filename_or_obj, os.PathLike):
|
|
456
467
|
ms = str(filename_or_obj)
|
|
457
468
|
elif isinstance(filename_or_obj, str):
|
|
@@ -492,7 +503,6 @@ class MSv2EntryPoint(BackendEntrypoint):
|
|
|
492
503
|
ninstances=store_args.ninstances,
|
|
493
504
|
epoch=store_args.epoch,
|
|
494
505
|
structure_factory=store_args.structure_factory,
|
|
495
|
-
**kwargs,
|
|
496
506
|
)
|
|
497
507
|
|
|
498
508
|
antenna_factory = AntennaFactory(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|