PyAuto Data Structures
Project description
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
- Source & tests:
autoarray/,test_autoarray/ - Decorators & JAX deep dive:
docs/agents/jax_and_decorators.md - Agent/contributor instructions:
AGENTS.md - Ecosystem: PyAutoLabs on GitHub
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autoarray-2026.7.2.647.tar.gz.
File metadata
- Download URL: autoarray-2026.7.2.647.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1802a68879fc4fc7721cdbba75e3236c03c65fbcb3f2f41c3e3aedf9e2d1833
|
|
| MD5 |
904dca51a2837ccda96dc6c5197fcc67
|
|
| BLAKE2b-256 |
44c6193c10c206359407f7c09d4c7b7aaa4cfa6d7e289e1bb4b54986e97dc3a9
|
File details
Details for the file autoarray-2026.7.2.647-py3-none-any.whl.
File metadata
- Download URL: autoarray-2026.7.2.647-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7c706d55d8aca1d5c4c378718612c8d774706ea4114ff69f9ddb9087fa7f17b
|
|
| MD5 |
75c3c43f177b23a6ab2be36fc3cadf33
|
|
| BLAKE2b-256 |
e96d1b81447f28f433cc6b4726c4bf6a8896c19ecb7c45c3f5cdac5cae1b2061
|