Skip to main content

Python bindings for am

Project description

am-python

CI status Documentation PyPI version Wheels License

Python bindings for Scott Paine's am atmospheric model, via Rust (PyO3).

Install

Requires the am source code (v14.0) and a C compiler.

# Download and extract am source
curl -fsSL "https://zenodo.org/records/13748403/files/am-14.0.tgz?download=1" | tar -xz
export AM_SRC_DIR=$PWD/am-14.0/src

# Install
uv pip install .

Usage

import am

m = am.Model("SPole_JJA_75.amc", [0, "GHz", 350, "GHz", 0.01, "GHz", 35, "deg", 1.0])
m.compute()

m.frequency       # numpy array, GHz
m.transmittance   # numpy array
m.opacity         # numpy array, nepers
m.tb_planck       # numpy array, K

Development

This project uses just to orchestrate common tasks and pre-commit for local checks.

# install deps
just sync

# run tests
just test
just test py
just test rs

# run formatting/lint checks
just fmt
just fmt-check
just lint
just typecheck

# build docs
just docs
just docs py
just docs rs

# run pre-commit hooks on all files
just precommit
just prepush

Project details


Download files

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

Source Distribution

am_python-0.6.1.tar.gz (23.0 MB view details)

Uploaded Source

Built Distribution

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

am_python-0.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (22.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

File details

Details for the file am_python-0.6.1.tar.gz.

File metadata

  • Download URL: am_python-0.6.1.tar.gz
  • Upload date:
  • Size: 23.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for am_python-0.6.1.tar.gz
Algorithm Hash digest
SHA256 7e7329ab61d8bf8d2cf3a0d7773e402cdc8dfb643716469294e69c882dfd014d
MD5 a05223f1277afac6eab9b8d712a4477a
BLAKE2b-256 87373b69649a89494b28bd9d8a6948819373fdf5398f80173f9e95fb844e3fb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for am_python-0.6.1.tar.gz:

Publisher: release.yaml on bdelwood/am-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file am_python-0.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for am_python-0.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27e28186b2d212dd261af1ac8e77dc0693fe60649c391a328b3ae5c46db687ea
MD5 b4fd6a3839928a45f365899134eb13d5
BLAKE2b-256 dd738603a845b0b2a155867a66d904c20f3bbe6409ea4a8e1a1b34e69000c26c

See more details on using hashes here.

Provenance

The following attestation bundles were made for am_python-0.6.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on bdelwood/am-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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