Skip to main content

gwsamplefind allows access to inidividual events posterior samples and found injection sets. It is primarily intended as a command line tool, but can also be used as a library.

Basic Usage

To download a set of samples for all events more significant than a given inverse false alarm rate (IFAR), you can use the following command:

$ python -m gwsamplefind --outdir ./tmp --n-samples 10 --parameters mass_1_source --seed 10 --host https://gwsamples.duckdns.org --ifar-threshold 5

To select only a subset of events you can use the –events flag:

$ python -m gwsamplefind --outdir ./tmp --n-samples 10 --parameters mass_1_source --seed 10 --host https://gwsamples.duckdns.org --ifar-threshold 5 --events GW150914_095045 GW190517_055101

Alternatively, to download a set of injections passing a matching threshold on IFAR, you can use the following command:

$ python -m gwsamplefind --outdir ./tmp --n-samples 10 --parameters mass1_source --seed 10 --host https://gwsamples.duckdns.org --ifar-threshold 5 --injection-set o1+o2+o3_bbhpop_real+semianalytic

If repeated calls are going to be made, the –host argument can be avoided by setting the GWSAMPLEFIND_SERVER environment variable.

Alternatively, gwsamplefind can be used as a library:

In [1]: from gwsamplefind.client import Client

In [2]: client = Client("https://gwsamples.duckdns.org")

In [3]: client.events()[:3]
Out[3]: ['GW150914_095045', 'GW151012_095443', 'GW151226_033853']

In [4]: client.samples("GW190403_051519", ["mass_1_source", "mass_2_source"], 10, seed=123)
Out[4]: (       mass_1_source  mass_2_source
171        84.189941      12.951107
10120      65.196794      39.803265
2453       93.339017      13.003137
3715       90.226224      18.606987
7594       58.999799      30.350026
6600       77.465397      28.502002
2840       77.523519      21.019240
1959      106.907594      11.683538
2053       95.548452      26.507532
599        71.564036      25.451262, {'filename': 'IGWN-GWTC2p1-v2-GW190403_051519_PEDataRelease_mixed_cosmo.h5', 'model': 'C01:IMRPhenomXPHM'})

Metadata

Release files for gwsamplefind 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 gwsamplefind 0.1.0
File Size Uploaded
gwsamplefind-0.1.0.tar.gz 4.8 kB Details

Built distribution (wheel)

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

Total release size: 10.9 kB

Release files / gwsamplefind-0.1.0.tar.gz

Download URL gwsamplefind-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
19e94fcf955de3ff323f013643af403c7d961ed15b2ad685cc35d1ba4ca11f63
BLAKE2b-256 checksum
How to use checksums
951ecca57bc0b10ea6e56ae54c8b6d5a39b25d029e0745964f6d2b8666ddb8f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 14, 2025.

Transparency log

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

Download URL gwsamplefind-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6b1553bfc36b1ad00a9e82cf524ac7fe50e23c150c0f647a6b94525e20ab4e9
BLAKE2b-256 checksum
How to use checksums
71df9f2c94d6e5af982d6d4ccba40f67067dc6af6758a6a4bb51e1ce8e2a8a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 14, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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