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.
Files changed (68) hide show
  1. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/PKG-INFO +1 -1
  2. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/changelog.rst +4 -0
  3. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/conf.py +1 -1
  4. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/pyproject.toml +2 -2
  5. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_backend.py +12 -0
  6. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/entrypoint.py +12 -2
  7. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/errors.py +4 -0
  8. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/ISSUE_TEMPLATE.md +0 -0
  9. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  10. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/dependabot.yml +0 -0
  11. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/workflows/ci.yml +0 -0
  12. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/workflows/pre-commit.yml +0 -0
  13. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.github/workflows/readthedocs.yml +0 -0
  14. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.gitignore +0 -0
  15. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.pre-commit-config.yaml +0 -0
  16. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/.readthedocs.yaml +0 -0
  17. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/LICENSE +0 -0
  18. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/README.rst +0 -0
  19. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/Makefile +0 -0
  20. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/make.bat +0 -0
  21. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/api.rst +0 -0
  22. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/index.rst +0 -0
  23. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/install.rst +0 -0
  24. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/introduction.rst +0 -0
  25. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/links.rst +0 -0
  26. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/partitioning.rst +0 -0
  27. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/roadmap.rst +0 -0
  28. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/doc/source/tutorial.rst +0 -0
  29. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/hello.txt +0 -0
  30. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/__init__.py +0 -0
  31. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/conftest.py +0 -0
  32. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/msv4_test_corpus/__init__.py +0 -0
  33. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/msv4_test_corpus/conftest.py +0 -0
  34. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/msv4_test_corpus/test_msv_corpus.py +0 -0
  35. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_antenna.py +0 -0
  36. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_basic.py +0 -0
  37. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_field_and_source.py +0 -0
  38. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_github.py +0 -0
  39. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_imputation.py +0 -0
  40. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_measures.py +0 -0
  41. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_multiton.py +0 -0
  42. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_read.py +0 -0
  43. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_structure.py +0 -0
  44. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_table_utils.py +0 -0
  45. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_utils.py +0 -0
  46. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/tests/test_zarr_roundtrip.py +0 -0
  47. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/__init__.py +0 -0
  48. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/array.py +0 -0
  49. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/entrypoint_utils.py +0 -0
  50. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/__init__.py +0 -0
  51. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/antenna.py +0 -0
  52. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/core.py +0 -0
  53. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/correlated.py +0 -0
  54. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/factories/field_and_source.py +0 -0
  55. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/imputation.py +0 -0
  56. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/measures_adapters.py +0 -0
  57. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/measures_encoders.py +0 -0
  58. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/partition.py +0 -0
  59. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/structure.py +0 -0
  60. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/backend/msv2/table_utils.py +0 -0
  61. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/casa_types.py +0 -0
  62. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/msv4_types.py +0 -0
  63. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/multiton.py +0 -0
  64. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/query.py +0 -0
  65. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/testing/__init__.py +0 -0
  66. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/testing/simulator.py +0 -0
  67. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/testing/utils.py +0 -0
  68. {xarray_ms-0.5.3 → xarray_ms-0.5.4}/xarray_ms/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xarray-ms
3
- Version: 0.5.3
3
+ Version: 0.5.4
4
4
  Summary: xarray MSv4 views over MSv2 Measurement Sets
5
5
  Author-email: Simon Perkins <simon.perkins@gmail.com>
6
6
  License-File: LICENSE
@@ -3,6 +3,10 @@
3
3
  Changelog
4
4
  =========
5
5
 
6
+ 0.5.4 (20-05-2026)
7
+ ------------------
8
+ * Allow unsupported arguments in entrypoint methods (:pr:`154`)
9
+
6
10
  0.5.3 (11-05-2026)
7
11
  ------------------
8
12
  * Expand standard msv2 columns supported during reads (:pr:`153`)
@@ -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.3"
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"
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.3"
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 FrameConversionWarning, InvalidPartitionKey
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(
@@ -1,3 +1,7 @@
1
+ class IgnoredArgument(UserWarning):
2
+ """Issued when keyword arguments are passed that this backend does not support."""
3
+
4
+
1
5
  class IrregularGridWarning(UserWarning):
2
6
  """Base Warning for irregular grids"""
3
7
 
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