pluscross (Python)
Pure-IO implementation of the waveform_catalog HDF5 format (see ../SPEC.md):
catalogs of frequency-domain waveform polarizations.
Installation
pip install pluscross
From source:
git clone https://github.com/binado/pluscross
cd pluscross/python
uv sync --extra test
import numpy as np
from pluscross import WaveformCatalog, save_catalog, load_catalog
catalog = WaveformCatalog(
frequencies=np.array([20.0, 30.0, 40.0]),
plus=np.array([[1.0 + 0.1j, 2.0 + 0.2j, 3.0 + 0.3j]]),
cross=np.array([[0.5 - 0.1j, 1.0 - 0.2j, 1.5 - 0.3j]]),
source_parameters={"mass_1": np.array([35.0]), "mass_2": np.array([30.0])},
approximant="IMRPhenomXAS",
minimum_frequency=20.0,
maximum_frequency=40.0,
reference_frequency=20.0,
sampling_frequency=4096.0,
)
catalog.save("catalog.h5")
loaded = WaveformCatalog.load("catalog.h5")
loaded.frequencies # (nfreq,) float64
loaded.plus # (nsamples, nfreq) complex128
loaded.cross # (nsamples, nfreq) complex128
loaded.source_parameters # dict[str, (nsamples,) float64]
save_catalog("copy.h5", loaded)
copy = load_catalog("copy.h5")
copy.source_parameters
No derived quantities (e.g. polarization power) are computed here — consumers do that themselves.
Run tests with uv run --extra test pytest tests/.
Metadata
Release files for pluscross 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pluscross-0.2.0.tar.gz | 4.8 kB | Without provenance | Details for pluscross-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pluscross-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pluscross-0.2.0-py3-none-any.whl |
Total release size: 10.7 kB
Release files / pluscross-0.2.0.tar.gz
| Download URL | pluscross-0.2.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5667ffea27045a107a6dcbe17990d096d734cee71e60be02816bd32ff0acaad2
|
|
BLAKE2b-256 checksum How to use checksums |
c073b821f4b90eb6c732ad5bf5c876618dd2e7215fd14d5aa74c0f51d83e6757
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pluscross-0.2.0-py3-none-any.whl
| Download URL | pluscross-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
96899a45575e85cd9bbb8321d06dfd9d40de9d8397a431363c10953d15886845
|
|
BLAKE2b-256 checksum How to use checksums |
7d490d16b2f3812e64bd1707d84e7de2ff4a635d9d0cff14e891c806222cedd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pluscross 0.2.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.