disko 1.4.3__tar.gz → 1.4.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 (52) hide show
  1. {disko-1.4.3 → disko-1.4.4}/CHANGES.md +4 -0
  2. {disko-1.4.3 → disko-1.4.4}/PKG-INFO +1 -1
  3. {disko-1.4.3 → disko-1.4.4}/disko/disko.py +12 -9
  4. {disko-1.4.3 → disko-1.4.4}/pyproject.toml +1 -1
  5. {disko-1.4.3 → disko-1.4.4}/.github/workflows/package.yaml +0 -0
  6. {disko-1.4.3 → disko-1.4.4}/.github/workflows/testing.yaml +0 -0
  7. {disko-1.4.3 → disko-1.4.4}/.gitignore +0 -0
  8. {disko-1.4.3 → disko-1.4.4}/.travis.yml +0 -0
  9. {disko-1.4.3 → disko-1.4.4}/CITATION.cff +0 -0
  10. {disko-1.4.3 → disko-1.4.4}/LICENSE.txt +0 -0
  11. {disko-1.4.3 → disko-1.4.4}/MANIFEST.in +0 -0
  12. {disko-1.4.3 → disko-1.4.4}/Makefile +0 -0
  13. {disko-1.4.3 → disko-1.4.4}/README.md +0 -0
  14. {disko-1.4.3 → disko-1.4.4}/disko/__init__.py +0 -0
  15. {disko-1.4.3 → disko-1.4.4}/disko/bayes_cli.py +0 -0
  16. {disko-1.4.3 → disko-1.4.4}/disko/cli.py +0 -0
  17. {disko-1.4.3 → disko-1.4.4}/disko/draw_cli.py +0 -0
  18. {disko-1.4.3 → disko-1.4.4}/disko/draw_sky.py +0 -0
  19. {disko-1.4.3 → disko-1.4.4}/disko/fov/__init__.py +0 -0
  20. {disko-1.4.3 → disko-1.4.4}/disko/fov/factory.py +0 -0
  21. {disko-1.4.3 → disko-1.4.4}/disko/healpix_sphere.py +0 -0
  22. {disko-1.4.3 → disko-1.4.4}/disko/ms_helper.py +0 -0
  23. {disko-1.4.3 → disko-1.4.4}/disko/multivariate_gaussian.py +0 -0
  24. {disko-1.4.3 → disko-1.4.4}/disko/parser_support.py +0 -0
  25. {disko-1.4.3 → disko-1.4.4}/disko/projection_lsqr.py +0 -0
  26. {disko-1.4.3 → disko-1.4.4}/disko/resolution.py +0 -0
  27. {disko-1.4.3 → disko-1.4.4}/disko/rime.py +0 -0
  28. {disko-1.4.3 → disko-1.4.4}/disko/sphere.py +0 -0
  29. {disko-1.4.3 → disko-1.4.4}/disko/sphere_mesh.py +0 -0
  30. {disko-1.4.3 → disko-1.4.4}/disko/svd_cli.py +0 -0
  31. {disko-1.4.3 → disko-1.4.4}/disko/telescope_operator.py +0 -0
  32. {disko-1.4.3 → disko-1.4.4}/disko/tests/__init__.py +0 -0
  33. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_disko.py +0 -0
  34. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_meshsphere.py +0 -0
  35. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_multivariate.py +0 -0
  36. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_projection_lsqr.py +0 -0
  37. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_pylops_operator.py +0 -0
  38. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_sphere.py +0 -0
  39. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_subsphere.py +0 -0
  40. {disko-1.4.3 → disko-1.4.4}/disko/tests/test_telescope_operator.py +0 -0
  41. {disko-1.4.3 → disko-1.4.4}/disko/util.py +0 -0
  42. {disko-1.4.3 → disko-1.4.4}/docker/Dockerfile +0 -0
  43. {disko-1.4.3 → disko-1.4.4}/docker/Makefile +0 -0
  44. {disko-1.4.3 → disko-1.4.4}/docker/docker-compose.yml +0 -0
  45. {disko-1.4.3 → disko-1.4.4}/install.sh +0 -0
  46. {disko-1.4.3 → disko-1.4.4}/movie/.gitignore +0 -0
  47. {disko-1.4.3 → disko-1.4.4}/movie/Makefile +0 -0
  48. {disko-1.4.3 → disko-1.4.4}/prof.py +0 -0
  49. {disko-1.4.3 → disko-1.4.4}/requirements.txt +0 -0
  50. {disko-1.4.3 → disko-1.4.4}/sequential_test.sh +0 -0
  51. {disko-1.4.3 → disko-1.4.4}/setup.cfg +0 -0
  52. {disko-1.4.3 → disko-1.4.4}/uv.lock +0 -0
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 1.4.4 (2026-06-22)
4
+
5
+ - Fix `image_visibilities` RAM: use matrix-free blocked adjoint instead of building the full complex Gamma matrix in memory
6
+
3
7
  ## 1.4.3 (2026-06-22)
4
8
 
5
9
  - Make `gmsh` and `meshio` optional dependencies in new `[mesh]` extras group; `uv sync --extra mesh` to install
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: disko
3
- Version: 1.4.3
3
+ Version: 1.4.4
4
4
  Summary: Discrete Sky Operator (DiSkO) Aperture Synthesis Radio Imaging
5
5
  Author-email: Tim Molteno <tim@elec.ac.nz>
6
6
  License: GPLv3
@@ -370,11 +370,10 @@ class DiSkO(object):
370
370
 
371
371
  def image_visibilities(self, vis_arr, sphere):
372
372
  """
373
- Create a DiSkO image from visibilities using the direct adjoint of the
374
- measurement operator (corresponds to the inverse DFT)
373
+ Create a DiSkO image from visibilities using the adjoint of the
374
+ measurement operator (matrix-free, blocked for memory efficiency).
375
375
 
376
376
  Args:
377
-
378
377
  vis_arr (np.array): An array of complex visibilities
379
378
  sphere (FoV): a sphere to place
380
379
  """
@@ -383,12 +382,16 @@ class DiSkO(object):
383
382
  logger.info("Imaging Visabilities resolution={}".format(sphere.min_res()))
384
383
  t0 = time.time()
385
384
 
386
- gamma = self.get_harmonics(sphere) # shape (n_v, n_pix), complex
387
- # sum_i conj(vis_i) * H[i,:] = conj(vis) @ H = H.T @ conj(vis) ...
388
- # Actually: pixels = sum_i vis_i * h_i = vis @ H = (H.T @ vis).T
389
- # Each column of H is a harmonic for one visibility.
390
- # pixels[j] = sum_i vis_i * H[i,j] = (vis @ H)[j]
391
- pixels = vis_arr @ gamma # (n_vis,) @ (n_vis, n_pix) -> (n_pix,)
385
+ # Build a DiSkOOperator and use its adjoint (A.T @ d)
386
+ # This is matrix-free and uses blocked computation to avoid
387
+ # storing the full Gamma matrix.
388
+ data = self.vis_to_data(vis_arr)
389
+ frequencies = [self.frequency]
390
+ A = DiSkOOperator(
391
+ self.u_arr, self.v_arr, self.w_arr, data, frequencies, sphere
392
+ )
393
+ d = data.flatten()
394
+ pixels = A.T @ d # shape (n_pix,)
392
395
 
393
396
  logger.info("Elapsed {}s".format(time.time() - t0))
394
397
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "disko"
3
- version = "1.4.3"
3
+ version = "1.4.4"
4
4
  description = "Discrete Sky Operator (DiSkO) Aperture Synthesis Radio Imaging"
5
5
  authors = [
6
6
  {name = "Tim Molteno",email = "tim@elec.ac.nz"}
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