Access gravitational-wave sample data
Project description
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'})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gwsamplefind-0.1.0.tar.gz.
File metadata
- Download URL: gwsamplefind-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19e94fcf955de3ff323f013643af403c7d961ed15b2ad685cc35d1ba4ca11f63
|
|
| MD5 |
565f003b570c510dd38769e4823a255c
|
|
| BLAKE2b-256 |
951ecca57bc0b10ea6e56ae54c8b6d5a39b25d029e0745964f6d2b8666ddb8f4
|
Provenance
The following attestation bundles were made for gwsamplefind-0.1.0.tar.gz:
Publisher:
publish-to-pypi.yml on ColmTalbot/gwsamplefind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gwsamplefind-0.1.0.tar.gz -
Subject digest:
19e94fcf955de3ff323f013643af403c7d961ed15b2ad685cc35d1ba4ca11f63 - Sigstore transparency entry: 394385560
- Sigstore integration time:
-
Permalink:
ColmTalbot/gwsamplefind@1aa8fed31fb51617a0704388fb2b7dd2fefbe428 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ColmTalbot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@1aa8fed31fb51617a0704388fb2b7dd2fefbe428 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gwsamplefind-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gwsamplefind-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b1553bfc36b1ad00a9e82cf524ac7fe50e23c150c0f647a6b94525e20ab4e9
|
|
| MD5 |
174e6be44e70b08058cb81e97b6cecaa
|
|
| BLAKE2b-256 |
71df9f2c94d6e5af982d6d4ccba40f67067dc6af6758a6a4bb51e1ce8e2a8a5b
|
Provenance
The following attestation bundles were made for gwsamplefind-0.1.0-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on ColmTalbot/gwsamplefind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gwsamplefind-0.1.0-py3-none-any.whl -
Subject digest:
e6b1553bfc36b1ad00a9e82cf524ac7fe50e23c150c0f647a6b94525e20ab4e9 - Sigstore transparency entry: 394385577
- Sigstore integration time:
-
Permalink:
ColmTalbot/gwsamplefind@1aa8fed31fb51617a0704388fb2b7dd2fefbe428 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ColmTalbot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@1aa8fed31fb51617a0704388fb2b7dd2fefbe428 -
Trigger Event:
push
-
Statement type: