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

Community & Contributing

PyAutoFit is built in the open by its users: everyone is welcome to ask questions, share what they have made with it, and contribute.

Questions, ideas and bug reports: the PyAutoLabs Discussions. Chat with us on Slack.

Community-built tools and tutorials, and how to contribute: the PyAutoFit community page.

Metadata

Release files for autoarray 2026.10.25.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autoarray 2026.10.25.1
File Size Uploaded Provenance Actions
autoarray-2026.10.25.1.tar.gz 2.3 MB Without provenance Details for autoarray-2026.10.25.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autoarray 2026.10.25.1
File Interpreter ABI Platform Actions
autoarray-2026.10.25.1-py3-none-any.whl Python 3 none any Details for autoarray-2026.10.25.1-py3-none-any.whl

Total release size: 3.0 MB

Release files / autoarray-2026.10.25.1.tar.gz

Download URL autoarray-2026.10.25.1.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
5884e5db21392eb21e1652614fbcc74613c4c2051a7eb5091c82edc696b3f31d
BLAKE2b-256 checksum
How to use checksums
20513fd2ae6d68b2cfa432fcfa5e6c826a3e2aec346df7a82e7d74db3ea0fe08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.15

Release files / autoarray-2026.10.25.1-py3-none-any.whl

Download URL autoarray-2026.10.25.1-py3-none-any.whl
Size 738.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c8c671422fdc1acf39d53cb4dd2286d5f42c61edceaad5d051d4b8c12a9501c
BLAKE2b-256 checksum
How to use checksums
70165cfd382324446a6bb52b2ea8c718522fb3aee0dfd40bc34379bd7928fa94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.15

Security for autoarray 2026.10.25.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.10.25.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page