jaxtfwaves
JAXTFwaves is the sibling project of tfwaves that is using JAX as backend.
tfwaves
TFWaves is a python package to compute fast time-frequency gravitational-wave response for LISA data analysis. It takes as imput phase and amplitude functions of the gravitational strain in the pseudo-inertial solar system barycenter frame, and outputs time-delay interferometry responses in the time-frequency domain.
Installation
The core package is available on PyPI:
pip install jaxtfwaves
To install a specific plugin, use its named extra:
pip install "jaxtfwaves[sobhbwaveform]" # SOBHB waveforms via ripplegw
# pip install "jaxtfwaves[emriwaveform]" # EMRI waveforms (coming soon)
Or install all available plugins at once:
pip install "jaxtfwaves[plugins]"
Typed API (TLT-First)
jaxtfwaves provides a typed output layer powered by typed-lisa-toolkit (TLT). This is the direction of the public API: the interface is being normalized around TLT-native objects rather than long-term raw sparse arrays.
Raw sparse outputs remain available for compatibility during the transition, but new code should prefer the typed methods and adapters below.
High-level typed methods
Use these methods directly on waveform objects:
compute_hphc_tlt(...)compute_tdi_tlt(...)
from tfwaves.stft import TimeToTFWaveform
# Build your waveform object as usual
wvf = TimeToTFWaveform(...)
stft_plus, stft_cross = wvf.compute_hphc_tlt(di=5)
tdi_data = wvf.compute_tdi_tlt(di=5) # defaults to XYZ or AET from wvf.channel
Adapter-level typed helpers
If you already work with raw sparse outputs, convert them explicitly with:
normalize_sparse_stft_outputsparse_stft_from_trackshphc_stfts_from_tracksstftdata_from_tdi
from tfwaves import hphc_stfts_from_tracks, stftdata_from_tdi
h_plus, h_cross, indices_f, indices_t = wvf.compute_hphc(di=5)
stft_plus, stft_cross = hphc_stfts_from_tracks(
h_plus,
h_cross,
indices_f,
indices_t,
wvf.f_bins,
wvf.t_bins,
)
tdi_values, indices_f, indices_t = wvf.compute_tdi_tf_response(di=5)
tdi_tlt = stftdata_from_tdi(
tdi_values,
indices_f,
indices_t,
wvf.f_bins,
wvf.t_bins,
)
Channel naming behavior
- If waveform channel contains
XYZ,compute_tdi_tlt()defaults toX,Y,Z. - If waveform channel contains
AET,compute_tdi_tlt()defaults toA,E,T. - You can override names with
channel_names=(...).
tdi_custom = wvf.compute_tdi_tlt(channel_names=("C1", "C2", "C3"))
Transition policy
The typed API is the canonical interface for new development. Transitional raw-output pathways are retained for one release cycle and will be progressively de-emphasized as TLT-normalized workflows become the default.
Contributing
Development environment
We use uv for dependency management. First clone the repository on your machine and go in the directory:
git clone git@gitlab.in2p3.fr:servignat/jaxtfwaves.git
cd jaxtfwaves
Create the lockfile and synchronize dependencies (including development tools):
uv sync --all-extras --group dev
We recommend you install pre-commit hooks to detect errors before you even commit.
uv run pre-commit install
Then you can run any script using
uv run python your_script.py
Lint and format checks are handled with Ruff:
uv run ruff check src tests
uv run ruff format --check src tests
Alternative local installation
As an alternative to uv-managed environments, you can install the package in development mode when you are in the jaxtfwaves directory:
pip install -e . # core only
pip install -e ".[plugins]" # core + plugins
Metadata
Release files for jaxtfwaves 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jaxtfwaves-1.1.0.tar.gz | 11.9 MB | Without provenance | Details for jaxtfwaves-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jaxtfwaves-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for jaxtfwaves-1.1.0-py3-none-any.whl |
Total release size: 12.0 MB
Release files / jaxtfwaves-1.1.0.tar.gz
| Download URL | jaxtfwaves-1.1.0.tar.gz |
|---|---|
| Size | 11.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45b4badf52a371f19c42712be1edceacdcd74014d3c00180fc83b1cc1ca4aca4
|
|
BLAKE2b-256 checksum How to use checksums |
0b560ed8cc72539e964178437f29fdad47340bd7cf5b05ff51c9241893b64b0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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":null}
|
Release files / jaxtfwaves-1.1.0-py3-none-any.whl
| Download URL | jaxtfwaves-1.1.0-py3-none-any.whl |
|---|---|
| Size | 80.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
898981d4550456d435b63354f0eaa5db60a1bb9331fe7f04488bc396e4949fcf
|
|
BLAKE2b-256 checksum How to use checksums |
75a02df253464f8b27985d8b1baf7ead3a109996c68589710ec8b78a2329f1cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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":null}
|
Security for jaxtfwaves 1.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.