Python bindings for am
Reason this release was yanked:
wrong tag
Project description
am-python
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
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 am_python-0.5.0.tar.gz.
File metadata
- Download URL: am_python-0.5.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0bb6e2c5269d270c41bff0c62c7110c080528b807c7d6e05b24eb61aee374c0
|
|
| MD5 |
05b890ae29012583ffdbad9c67745a10
|
|
| BLAKE2b-256 |
73348fbcdf717ad85e9774b7859f2fcf3a92b26bca3200c4dbdd62959eda3da7
|
Provenance
The following attestation bundles were made for am_python-0.5.0.tar.gz:
Publisher:
release.yaml on bdelwood/am-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
am_python-0.5.0.tar.gz -
Subject digest:
a0bb6e2c5269d270c41bff0c62c7110c080528b807c7d6e05b24eb61aee374c0 - Sigstore transparency entry: 1340345500
- Sigstore integration time:
-
Permalink:
bdelwood/am-python@b4bbb65d5d7377c0dd197568930811b03826a80e -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/bdelwood
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b4bbb65d5d7377c0dd197568930811b03826a80e -
Trigger Event:
push
-
Statement type:
File details
Details for the file am_python-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: am_python-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 22.3 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf2f82c42b42d10f99e7e5d6d239bded8b72f4d9a631f770de96c85c3c34618
|
|
| MD5 |
e99d62f3c1aa966bf3cd68462b491f76
|
|
| BLAKE2b-256 |
2372f6263fa214b1f9419be591ea6956aae25c0f9faea6259fe1e0c7da4002bd
|
Provenance
The following attestation bundles were made for am_python-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release.yaml on bdelwood/am-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
am_python-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
abf2f82c42b42d10f99e7e5d6d239bded8b72f4d9a631f770de96c85c3c34618 - Sigstore transparency entry: 1340345503
- Sigstore integration time:
-
Permalink:
bdelwood/am-python@b4bbb65d5d7377c0dd197568930811b03826a80e -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/bdelwood
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b4bbb65d5d7377c0dd197568930811b03826a80e -
Trigger Event:
push
-
Statement type: