Skip to main content

Derivative of treams with complex frequency support

Project description

treaaams v0.4.6c4

A derivative of treams with targeted source-level patches to enable complex frequency evaluation.

How it works

GitHub (treams vX.Y.Z)
        │  tarball download
        ▼
_build/treams_src/          ← clean upstream source
        │  patch -p1 (each file in patches/ in order)
        ▼
_build/treams_src/          ← patched source
        │  build (and publish) wheel
        ▼
install treaaams via pip/uv

Prerequisites

  • Python ≥ 3.10
  • uv (recommended) or pip
  • A C compiler + patch utility (apt install patch / brew install gpatch)
  • Cython and NumPy (installed automatically by the build backend)

Quick start: editable install

# 1. Create a virtual environment (uv)
uv sync

# 2. Fetch upstream, apply patches, and install in editable mode
make editable

# 3. Verify
python -c "import treaaams; print(treaaams.__version__)"

Adding or modifying a patch

Workflow

# 1. Make sure you have a clean source tree
python scripts/build_patched.py --no-fetch   # skips download, resets patches

# 2. Edit the file you want to change
$EDITOR _build/treams_src/src/treams/_special/sph.pyx

# 3. Capture the diff as a numbered patch file
python scripts/make_patch.py src/treams/_special/sph.pyx \
    --name 010-custom-sph

# 4. Inspect it
cat patches/010-custom-sph.patch

# 5. Dry-run all patches to verify
make patch-dry-run

# 6. Rebuild
make editable

Patch naming convention

Patches are applied lexicographically, so number them explicitly:

File Applied
000-fix-typo.patch first
010-override-ufunc.patch second
020-custom-lattice.patch third

Tracking a new upstream version

# In Makefile, bump VERSION := 0.4.7
# Then:
make editable

If a patch no longer applies cleanly, patch will create a .rej file with the rejected hunks. Edit the patch accordingly and re-run.

Project layout

treams-derivative/
├── patches/              ← .patch files (applied in order)
│   └── README.md
├── scripts/
│   ├── build_patched.py  ← main build driver
│   └── make_patch.py     ← helper to create new patches
├── src/
│   └── treaaams/
│       └── __init__.py   ← your package
├── tests/
├── _build/               ← generated; not committed
│   └── treams_src/       ← patched upstream source
├── Makefile
├── pyproject.toml
├── setup.py
└── README.md

Running tests

uv run pytest tests/ -v

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

treaaams-0.4.6rc4-cp313-cp313-musllinux_1_2_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

treaaams-0.4.6rc4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

treaaams-0.4.6rc4-cp312-cp312-musllinux_1_2_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

treaaams-0.4.6rc4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

treaaams-0.4.6rc4-cp311-cp311-musllinux_1_2_x86_64.whl (7.3 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

treaaams-0.4.6rc4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (7.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

treaaams-0.4.6rc4-cp310-cp310-musllinux_1_2_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

treaaams-0.4.6rc4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (7.2 MB view details)

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

File details

Details for the file treaaams-0.4.6rc4-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp313-cp313-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 7.4 MB
  • Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 08fff78e310c2fceb7c508acb334e01c69a20591c2b41e501e4d7f5bf69256fe
MD5 d7ed490c3bfda3d48818f6b6850caf62
BLAKE2b-256 635a971b9df2f05875df436dda8de30b3c477451caf9358f861b3789b6663507

See more details on using hashes here.

File details

Details for the file treaaams-0.4.6rc4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 7.5 MB
  • Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2d43c9d0506c7c7be39d57fb2bf1a5faf58007f4941ce03961e1db9f1ce272e0
MD5 a3d99e6d299ccfac12ff114332c2f46c
BLAKE2b-256 67c89e1484dbcd5cb10c9d53af8999d28e4e6c5c29d3c2e1644b7275642f708c

See more details on using hashes here.

File details

Details for the file treaaams-0.4.6rc4-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp312-cp312-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 7.4 MB
  • Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7a98d947304668bd804884fcf8043fdbcc24fa47baf0a55c10c233e3902b9b44
MD5 f69f84dacb29e2a3dfc5ef25b98561ac
BLAKE2b-256 36be8ce475ad437909ea240075459abe12355aafb44d3407c4a8cf67fce86e83

See more details on using hashes here.

File details

Details for the file treaaams-0.4.6rc4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 7.6 MB
  • Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9efa3663d5b047ff6d3affc14501ebee94b2b4ea5795b2c778be6c577a6c0b0d
MD5 839393fd1c183e72ad3bab9dba2cbdcc
BLAKE2b-256 57cd65196a837d9c98ae9159c74f86f54e9f440e4cff0ad8a85fa419235a19ca

See more details on using hashes here.

File details

Details for the file treaaams-0.4.6rc4-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp311-cp311-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 7.3 MB
  • Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1dcc3d4e5d3896c50df481c5670cc06641d3eea603cb2147fdc57e294aca0406
MD5 f2ec2baef8690a87348abc259abd7f26
BLAKE2b-256 51d66eb9c113c57c39648e6edbfa2ff3950e4845c8ce531526f5c52a89df0e2f

See more details on using hashes here.

File details

Details for the file treaaams-0.4.6rc4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 7.5 MB
  • Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43884f975445c63d585821a4fd1aa611b2990ffeb15b7b8793141f76fade5257
MD5 1d6236cabceb28cc7243b5cc65d7d495
BLAKE2b-256 95ee137bc23ef27b84186dfc6ec0e476b527b4817236db241b5e7354e0adb47f

See more details on using hashes here.

File details

Details for the file treaaams-0.4.6rc4-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp310-cp310-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 7.1 MB
  • Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6ba8bbf8a6a3c5787154953d1783aef4d97f088210f9da9017f117b97018dee2
MD5 82915f3ca15ea06c015fc64d4ac71d1e
BLAKE2b-256 a04393d513c0e5d06dd77ca8871ac6fc2a44d264f5a1651e2ec4ceab1d0545d2

See more details on using hashes here.

File details

Details for the file treaaams-0.4.6rc4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: treaaams-0.4.6rc4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 7.2 MB
  • Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for treaaams-0.4.6rc4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8ed0530ccd2644e81219d726487c727d9f4dbb8d04dee909e057979437be3808
MD5 b5f6e9081f35bfbed84e7f410c7f1fb7
BLAKE2b-256 ecb7c11eeec77ac57cde8ad2eb6950ba4d3a23fd3344af6e1bdbb96c3c6f9488

See more details on using hashes here.

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