Skip to main content

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

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.

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wdm-wavelet 0.5.0
File Size Uploaded Provenance Actions
wdm_wavelet-0.5.0.tar.gz 704.6 kB Without provenance Details for wdm_wavelet-0.5.0.tar.gz

Release files / wdm_wavelet-0.5.0.tar.gz

Download URL wdm_wavelet-0.5.0.tar.gz
Size 704.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a93a86c3cdf52937a902e566b671acf92d2772f51f3e200cd47edce2f8bf075b
BLAKE2b-256 checksum
How to use checksums
1e31f71f9686f0dafad10c52537294323ad12dfaa14e84cd60744016ed09bd3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for wdm-wavelet 0.5.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page