xarray-ms 0.2.7__tar.gz → 0.2.9__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 (24) hide show
  1. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/LICENSE +2 -1
  2. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/PKG-INFO +2 -2
  3. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/pyproject.toml +3 -3
  4. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/imputation.py +6 -0
  5. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/testing/simulator.py +1 -0
  6. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/README.rst +0 -0
  7. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/__init__.py +0 -0
  8. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/array.py +0 -0
  9. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/encoders.py +0 -0
  10. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/entrypoint.py +0 -0
  11. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/entrypoint_utils.py +0 -0
  12. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/factories/__init__.py +0 -0
  13. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/factories/antenna.py +0 -0
  14. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/factories/correlated.py +0 -0
  15. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/partition.py +0 -0
  16. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/backend/msv2/structure.py +0 -0
  17. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/casa_types.py +0 -0
  18. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/errors.py +0 -0
  19. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/msv4_types.py +0 -0
  20. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/multiton.py +0 -0
  21. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/query.py +0 -0
  22. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/testing/__init__.py +0 -0
  23. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/testing/utils.py +0 -0
  24. {xarray_ms-0.2.7 → xarray_ms-0.2.9}/xarray_ms/utils.py +0 -0
@@ -1,6 +1,7 @@
1
1
  BSD 3-Clause License
2
2
 
3
- Copyright (c) 2024, Rhodes University Centre for Radio Astronomy Techniques & Technologies (RATT)
3
+ Copyright (c) 2024 - 2025 National Research Foundation (SARAO) and
4
+ Rhodes University Centre for Radio Astronomy Techniques & Technologies (RATT)
4
5
 
5
6
  Redistribution and use in source and binary forms, with or without
6
7
  modification, are permitted provided that the following conditions are met:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xarray-ms
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: xarray MSv4 views over MSv2 Measurement Sets
5
5
  Author: Simon Perkins
6
6
  Author-email: simon.perkins@gmail.com
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Provides-Extra: testing
13
- Requires-Dist: arcae (>=0.2.7,<0.3.0)
13
+ Requires-Dist: arcae (>=0.2.8,<0.3.0)
14
14
  Requires-Dist: cacheout (>=0.16.0,<0.17.0)
15
15
  Requires-Dist: dask[testing] (>=2024.5.0,<2025.0.0) ; extra == "testing"
16
16
  Requires-Dist: distributed[testing] (>=2024.5.0,<2025.0.0) ; extra == "testing"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "xarray-ms"
3
- version = "0.2.7"
3
+ version = "0.2.9"
4
4
  description = "xarray MSv4 views over MSv2 Measurement Sets"
5
5
  authors = ["Simon Perkins <simon.perkins@gmail.com>"]
6
6
  readme = "README.rst"
@@ -12,7 +12,7 @@ xarray = "^2025.0"
12
12
  dask = {version = "^2024.5.0", optional = true, extras = ["testing"]}
13
13
  distributed = {version = "^2024.5.0", optional = true, extras = ["testing"]}
14
14
  cacheout = "^0.16.0"
15
- arcae = "^0.2.7"
15
+ arcae = "^0.2.8"
16
16
  typing-extensions = { version = "^4.12.2", python = "<3.11" }
17
17
  zarr = {version = "^2.18.3", optional = true, extras = ["testing"]}
18
18
 
@@ -58,7 +58,7 @@ build-backend = "poetry.core.masonry.api"
58
58
  # github_url = "https://github.com/<user or organization>/<project>/"
59
59
 
60
60
  [tool.tbump.version]
61
- current = "0.2.7"
61
+ current = "0.2.9"
62
62
 
63
63
  # Example of a semver regexp.
64
64
  # Make sure this matches current_version before
@@ -17,6 +17,12 @@ def _maybe_return_table_or_max_id(
17
17
  ) -> pa.Table | int:
18
18
  """Returns the existing table if a row entry exists,
19
19
  else returns the maximum id"""
20
+
21
+ # NOTE(sjperkins)
22
+ # Negative ids are invalid foreign keys
23
+ # AFAICT this implies there's no entry in the associated subtable
24
+ # Set a ceiling of 0 for imputation purposes
25
+ ids = np.concatenate([ids, [0]])
20
26
  max_id = np.max(ids)
21
27
 
22
28
  if max_id < len(table):
@@ -413,6 +413,7 @@ class MSStructureSimulator:
413
413
  feed = desc.feed_map[tuple(corrs.polarisation_types())]
414
414
 
415
415
  array_groups: List[Tuple[List[str], List[npt.NDArray]]] = [
416
+ (["PROCESSOR_ID"], [desc.PROCESSOR_ID]),
416
417
  (["OBSERVATION_ID"], [desc.OBSERVATION_ID]),
417
418
  (["FIELD_ID"], [desc.FIELD_ID]),
418
419
  (["DATA_DESC_ID"], [desc.DATA_DESC_ID]),
File without changes
File without changes
File without changes
File without changes