Skip to main content

aocore

CI License: MIT

Shared conventions, conformance checks and optics primitives for the adaptive-optics simulation stack: aobasis, pyturb, getframes, makewfs, solvephase, shmpipeline-ao and pyRTC.

The packages of the stack hand each other OPD maps, images, wind vectors and slopes. aocore makes sure they mean the same thing by them:

  • CONVENTIONS.md is the contract: array axes, pixel centres, units, propagation sign and normalization, RMS and Strehl definitions, Zernike orientation, wind and slope conventions, and who owns which primitive.
  • aocore.conformance holds executable checks of the contract that every package runs against its own implementation in its test suite.
  • The primitives themselves, implemented once:
    • a NumPy/CuPy array backend;
    • anti-aliased and segmented pupils with telescope presets;
    • FFT, matrix-Fourier, focal-plane and angular-spectrum propagators with exact adjoints;
    • wavefront metrics, least-squares phase unwrapping, pixel binning and unit constants.
pip install aocore              # CPU
pip install "aocore[cuda12]"    # + CuPy for CUDA 12.x
import aocore as ac

pupil = ac.Pupil.vlt(128)
prop = ac.FocalPlanePropagator(pupil.shape, pupil.pitch, 1.6e-6, 1.6e-6 / 8 / 2, (64, 64))
print(ac.rms(opd, pupil, remove="tiptilt"))  # CONVENTIONS 4.1

# In any package's tests:
from aocore import conformance

conformance.check_tilt_direction(
    my_image_from_opd, pupil_shape=(64, 64), pitch=..., pixel_scale=...
)

aocore depends only on NumPy, SciPy and threadpoolctl. CuPy is optional.

License

MIT. Everything in the stack must be shippable under MIT (see CONVENTIONS 8.4).

Metadata

Release files for aocore 0.1.2

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

Source distribution (sdist)

Source distribution for aocore 0.1.2
File Size Uploaded
aocore-0.1.2.tar.gz 39.3 kB Details

Built distribution (wheel)

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

Total release size: 70.0 kB

Release files / aocore-0.1.2.tar.gz

Download URL aocore-0.1.2.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c4a1f5b78487a72eab2a1da866bb1a57afd958c120c79789c5b43535459d258
BLAKE2b-256 checksum
How to use checksums
4f9ce72147ce8d8af6b6f71bf942e826f4faf6043bbf084258839db7e7dba390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / aocore-0.1.2-py3-none-any.whl

Download URL aocore-0.1.2-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51d5461c0e7b33fe4862d738f2e012eb0cf9fb5d4461c2b65d667a83c2d7a38e
BLAKE2b-256 checksum
How to use checksums
1bdc55c96d63c94d5dbb78d8cfb7486fe68691852838d55170a9b97fe31d232d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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