Skip to main content

PyAutoArray

PyAutoArray (package autoarray) is the low-level data-structure and numerical-utility layer of the PyAuto ecosystem. It provides masks, arrays, (y,x) coordinate grids, imaging/interferometer datasets, inversions/pixelizations for source reconstruction, and convolution/over-sampling operators.

PyAutoGalaxy and PyAutoLens build directly on autoarray: every grid a profile consumes, every masked image a fit operates on, and the linear-algebra inversions behind pixelized source reconstruction are autoarray objects. The package supports both a NumPy and an opt-in JAX (xp=jnp) backend.

Install

pip install autoarray

Examples

A masked 2D array tied to a pixel scale:

import autoarray as aa

arr = aa.Array2D.no_mask(values=[[1.0, 2.0], [3.0, 4.0]], pixel_scales=0.1)
arr.shape_native        # (2, 2)
arr.native[0, 0]        # 1.0

A circular mask and the (y,x) coordinate grid of its unmasked pixels:

mask = aa.Mask2D.circular(shape_native=(50, 50), pixel_scales=0.1, radius=2.0)
mask.pixels_in_mask     # 1264

grid = aa.Grid2D.from_mask(mask=mask)       # shape (1264, 2)
uniform = aa.Grid2D.uniform(shape_native=(10, 10), pixel_scales=0.1)

A normalized Gaussian PSF convolver:

convolver = aa.Convolver.from_gaussian(
    shape_native=(11, 11), pixel_scales=0.1, sigma=1.0, normalize=True
)
convolver.kernel.shape_native       # (11, 11)
convolver.kernel.array.sum()        # 1.0

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoarray-2026.8.4.1.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoarray-2026.8.4.1-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file autoarray-2026.8.4.1.tar.gz.

File metadata

  • Download URL: autoarray-2026.8.4.1.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.13

File hashes

Hashes for autoarray-2026.8.4.1.tar.gz
Algorithm Hash digest
SHA256 94f73a5c295be0ffc5736901a8c31403de931028b3eb04ac86757ac7bf724e44
MD5 e5aef1f5867edcb146a53c3a3bffecc8
BLAKE2b-256 7d37c36fb5626a0fd2c33ad5473c1ff2d6b534ad48c1352462b0332fe2991e30

See more details on using hashes here.

File details

Details for the file autoarray-2026.8.4.1-py3-none-any.whl.

File metadata

  • Download URL: autoarray-2026.8.4.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.13

File hashes

Hashes for autoarray-2026.8.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0f3e636143fc40c9d5d76db4f8a752b52d647d18aba97af7ddbf9921b5b745b
MD5 1f989577c06fc60add40eb608abf4a98
BLAKE2b-256 6d7a10f9a151daf518969959d6125992a4d9c6b0b667e4658688ffeb3fd11e09

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page