Skip to main content

gwexpy logo

gwexpy: GWpy Expansions for Experiments

CI Status Docs Pages License: MIT Python 3.11+

gwexpy is an extension library for GWpy for experimental physics and gravitational-wave data analysis. It adds matrix-aware containers, field operations, fitting workflows, expanded I/O, and interoperability layers while preserving the default finite numerical results, sample selection, and axis behavior of corresponding GWpy APIs. Intentional divergence from these guarantees requires explicit user opt-in, except for a named, human-approved safety exception that satisfies every compatibility-policy gate.

GWexpy is an independent package built on top of GWpy. It is not an official component of the GWpy project.

Read the project-wide GWpy behavioral compatibility policy or its Japanese translation.

Install

GWexpy v0.2.0 is available from both PyPI and conda-forge.

python -m pip install gwexpy
# or
conda install -c conda-forge gwexpy

The experimental GUI app is not part of the supported package surface.

For optional extras, external dependencies, and environment-specific setup, use the official installation guides:

Documentation

The full documentation is maintained in the docs site and is the source of truth for usage details.

Why gwexpy?

  • Matrix-native analysis: TimeSeriesMatrix, FrequencySeriesMatrix, and SpectrogramMatrix support batch processing, transfer functions, and multichannel workflows.
  • Physics-oriented containers: ScalarField, VectorField, and TensorField extend analysis beyond simple series into structured field data.
  • Practical workflows: fitting, noise hunting, time-frequency analysis, and interoperability are exposed as user-facing workflows rather than isolated utilities.
  • Broad interoperability and I/O: gwexpy bridges scientific Python tools and extends format coverage beyond core GWpy workflows.

Where gwexpy Fits

gwexpy occupies the layer between GWpy and the workflow packages built on top of it. GWpy provides the standard gravitational-wave data objects; gwexpy adds matrix-aware containers, typed analysis results, broad I/O, and external-tool conversion; detector-characterization, search, and inference pipelines consume those products.

It is complementary to, not a replacement for, packages such as spicypy (signal processing and control systems) and GWDama (HDF5-first data preparation). Site-specific operational pipelines, operator-facing reports, job orchestration, and trigger generation are deliberately out of scope.

For the full comparison, the ecosystem map, and the third-party code policy, see:

Quick Start

import numpy as np
import gwexpy
from gwexpy.timeseries import TimeSeries, TimeSeriesList

gwexpy.register_all()

ts1 = TimeSeries(np.arange(8.0), dt=1.0, name="A")
ts2 = TimeSeries(np.arange(8.0) * 2.0, dt=1.0, name="B")
matrix = TimeSeriesList([ts1, ts2]).to_matrix()
asd = matrix.asd(fftlength=2.0)
print(matrix.shape)

This example explicitly registers the full supported surface. Supported public I/O entry points can register their required handlers on demand.

For fitting, I/O, interoperability, and notebook-based workflows, start from the docs hub or the tutorial index above.

More Resources

Support

Metadata

Release files for gwexpy 0.2.6

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

Source distribution (sdist)

Source distribution for gwexpy 0.2.6
File Size Uploaded Provenance Actions
gwexpy-0.2.6.tar.gz 828.5 kB With provenance Details for gwexpy-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gwexpy 0.2.6
File Interpreter ABI Platform Actions
gwexpy-0.2.6-py3-none-any.whl Python 3 none any Details for gwexpy-0.2.6-py3-none-any.whl

Total release size: 1.8 MB

Release files / gwexpy-0.2.6.tar.gz

Download URL gwexpy-0.2.6.tar.gz
Size 828.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b67f0335e7fa60fa9af8305912dec136ad1cd6d3cea6db0adb8c438837f9a783
BLAKE2b-256 checksum
How to use checksums
d71bf06e204dd99b9c9b85f888469cf80ba8436bf40e54be5dc459d38bef6ba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / gwexpy-0.2.6-py3-none-any.whl

Download URL gwexpy-0.2.6-py3-none-any.whl
Size 929.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c1552de056ded5f3f934a30f3454133dcf13374e10b0dac0a7ff8ac3d0c2003
BLAKE2b-256 checksum
How to use checksums
994cf2d5fef3bba965b7bb6893ba508cba2dcebd542886c1659d3549c5096087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for gwexpy 0.2.6

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gwexpy-0.2.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

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