Skip to main content

gwmock-newtonian-noise

Python CI pre-commit.ci status Documentation Status codecov PyPI Version Python Versions License: BSD-3-Clause Ruff

gwmock-newtonian-noise simulates Newtonian noise in triangular gravitational-wave detectors such as the Einstein Telescope (ET): a Rayleigh-wave seismic field, the Newtonian-noise strain response of the three ET triangle detectors, seismic witness sensors and arrays observing the same field, and the joint strain+witness covariance and realizations built from them.

Two backends implement the optional JointStrainWitnessSimulator protocol from the public gwmock-noise package, and both register themselves as gwmock_noise.joint_backends entry points, so gwmock-noise discovers them without importing this package directly:

  • newtonian_rayleigh (gwmock_newtonian_noise.joint.NewtonianJointSimulator) — the physical backend: three ET strains plus N witnesses, with a Hermitian positive-semidefinite one-sided joint covariance and seeded realizations of a declared segmented process (see the module docstring for the process and the cross-spectrum sign convention).
  • newtonian_scaffold (gwmock_newtonian_noise.simulator.NewtonianScaffoldSimulator) — a physics-free placeholder (temporally white, fixed equicorrelation) kept for protocol and adapter conformance tests.

A compatibility adapter (StrainOnlyAdapter) lets existing gwmock-noise consumers receive strain-only output from either backend.

Installation

pip install gwmock-newtonian-noise

The package requires Python 3.13 or later.

Broader Newtonian-noise families

gwmock_newtonian_noise.families extends the physics beyond the minimal Rayleigh field, for out-of-family tests. Every family is a set of independent latent modes with a displacement and a Newtonian-acceleration response, so one generic consumer builds the strain, witness and joint covariances and realizations for all of them, and independent families combine by mixing:

  • RayleighFamily — the existing Rayleigh field through the family contract (it reproduces the existing joint covariance), plus phase_velocity_spread, a lateral-inhomogeneity proxy;
  • BodyWaveFamily — P, SV and SH plane body waves with separate, required PSDs and a three-dimensional directional density, either in the infinite-medium limit or in a half-space with free-surface reflections; equipartitioned_body_waves is the diffuse (scattering-limit) field;
  • LoveWaveFamily — fundamental Love waves of a layer over a half-space; they source no field-intrinsic gravity in this geometry but are seen by horizontal witnesses and reach the strain through the cavity term;
  • PointSourceFamily — localized isotropic P-wave sources with their near field;
  • CavityModel — the cavity-wall term of a test mass in an underground hall.

Sensors and test masses are placed in three dimensions (z is depth). No family fixes a site: each lists its site parameters in UNANCHORED_PARAMETERS, none of which has a default, and every value used in the tests is illustrative. Layered Rayleigh modes, topography, attenuation, cavity scattering and free-surface effects on point sources are not modelled.

Development

uv sync
uv run pytest -q
uv run ruff check .
uv run ruff format --check .

Pre-commit hooks are configured in .pre-commit-config.yaml (uv run prek install to enable them locally). Documentation is built with Zensical from docs/ (uv run --group docs zensical build).

Metadata

Release files for gwmock-newtonian-noise 0.1.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 gwmock-newtonian-noise 0.1.0
File Size Uploaded Provenance Actions
gwmock_newtonian_noise-0.1.0.tar.gz 278.0 kB With provenance Details for gwmock_newtonian_noise-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gwmock-newtonian-noise 0.1.0
File Interpreter ABI Platform Actions
gwmock_newtonian_noise-0.1.0-py3-none-any.whl Python 3 none any Details for gwmock_newtonian_noise-0.1.0-py3-none-any.whl

Total release size: 388.3 kB

Release files / gwmock_newtonian_noise-0.1.0.tar.gz

Download URL gwmock_newtonian_noise-0.1.0.tar.gz
Size 278.0 kB
Tags Source
SHA-256 checksum
How to use checksums
009eb45434b4634b8adc5b1bff2db96b49764c8b97532f7c6b65cadf7babdc6d
BLAKE2b-256 checksum
How to use checksums
a83d8fdee873abf83d7c4dfee41b0d3292a8327e99f78b4280982195487b6e24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 17, 2026.

Transparency log

Release files / gwmock_newtonian_noise-0.1.0-py3-none-any.whl

Download URL gwmock_newtonian_noise-0.1.0-py3-none-any.whl
Size 110.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce5b223a33b37cbbf414b0602de6d7f6d82879d5d9df4e76750e656922aaa13b
BLAKE2b-256 checksum
How to use checksums
b588cee0c729ed6fc5fc0841b8baca0bfb68403d2e826c0dc95a10efe7f499f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 17, 2026.

Transparency log

Security for gwmock-newtonian-noise 0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gwmock_newtonian_noise-0.1.0.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 Nov 17, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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