This release is a pre-release and may not be stable for production use.
WDM wavelet transform
This package hosts the python version of WDM wavelet used in coherentWaveBurst(cWB) search.
Installation
pip install wdm-wavelet
Example
Generate a timeseries waveform
from pycbc.waveform import get_td_waveform
import matplotlib.pyplot as plt
hp, hc = get_td_waveform(approximant="IMRPhenomTPHM",
mass1=20,
mass2=20,
spin1z=0.9,
spin2z=0.4,
inclination=1.23,
coa_phase=2.45,
distance=100,
delta_t=1.0/2048,
f_lower=20)
Apply WDM wavelet transform
from wdm_wavelet.wdm import WDM
wdm = WDM(32, 64, 6, 10, backend="jax") # or backend="numba"
tf_map = wdm.t2w(hp)
tf_map.plot_energy()
Inverse WDM wavelet transform
ts = wdm.w2t(tf_map)
plt.plot(ts)
Supported class backends: "jax" (default) and "numba".
Both JAX and Numba are required installation dependencies.
For more examples, please refer to the example notebook.
API docs
- API usage guide
- Explicit transform options
- Automatic CPU acceleration
- Release integration assessment
Choosing a backend
from wdm_wavelet.wdm import WDM
wdm = WDM(16, 16, 6, 10, backend="numba") # or backend="jax"
The backend selects the forward and inverse transform kernels for each instance. Numba executes on the CPU; JAX uses its configured device. Both implementations are installed together, so changing backend requires no dependency changes. Missing dependencies fail at import rather than silently selecting slower kernels.
Existing WDM.t2w() calls automatically use the optimized CPU tile path for
eligible JAX quadrature inputs on the qualified host and numerical stack.
No new constructor argument or calling convention is needed. Other inputs,
GPU execution and an explicitly selected Numba backend retain their original
transforms. See CPU acceleration for the supported
geometry, qualification checks and measured performance.
WDM.filter remains a float64 JAX array for both backends, as in v0.3.1.
Numba wrappers convert inputs to NumPy arrays at the kernel boundary. NumPy
remains a dependency for array storage and numerical operations; it is not a
separate execution backend. Class inverse methods return GWpy TimeSeries.
Metadata
Release files for wdm-wavelet 0.5.0a1
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 |
|---|---|---|---|---|
| wdm_wavelet-0.5.0a1.tar.gz | 732.7 kB | Without provenance | Details for wdm_wavelet-0.5.0a1.tar.gz |
Release files / wdm_wavelet-0.5.0a1.tar.gz
| Download URL | wdm_wavelet-0.5.0a1.tar.gz |
|---|---|
| Size | 732.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3fb96fc9af541f4c87622fe0063d628e05f41aace87baf04e8d000b26d7f662
|
|
BLAKE2b-256 checksum How to use checksums |
b42f1020dd7cecdf4c03c53fc0171322033509728321b74c6cbfc7aff245a825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.18
|
Security for wdm-wavelet 0.5.0a1
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.