Skip to main content

CASTOR

CI Documentation Status PyPI License

CASTOR is a transformer-based pipeline for gravitational-wave detection, training, inference, and sensitivity evaluation.

CASTOR is under active development. Version 0.1.0 packages the analysis workflow described in the accompanying paper.

Installation

Choose and install the appropriate CPU, CUDA, or ROCm build of PyTorch for your platform before installing CASTOR. This prevents a CPU-only Linux environment from downloading an unintended CUDA runtime. Then install the released package with:

python -m pip install castor-gw

For an editable development installation, install from a clone:

git clone https://github.com/chayanchatterjee/castor.git
cd castor
python -m pip install -e .

Install the scientific extras needed by a workflow with:

python -m pip install -e ".[training]"   # ML4GW online training
python -m pip install -e ".[evaluation]" # PyCBC whitening
python -m pip install -e ".[plotting]"   # plotting dependencies

Verify the installed commands with:

castor-train --help
castor-eval --help

See the documentation for the training, evaluation, cluster, data-format, and reproducibility guides.

Reproducibility

The paper workflow uses 10--50 solar-mass component masses, 500 epochs, global seed 2026, deterministic validation, raw checkpoint weights, and a factor of 32 that reconciles the PyCBC and ML4GW whitening conventions. Checkpoints and evaluation caches record the configuration and input identities required to reject incompatible reuse.

License

CASTOR is distributed under the Apache License 2.0.

Metadata

Release files for castor-gw 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 castor-gw 0.1.0
File Size Uploaded Provenance Actions
castor_gw-0.1.0.tar.gz 61.7 kB With provenance Details for castor_gw-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 114.7 kB

Release files / castor_gw-0.1.0.tar.gz

Download URL castor_gw-0.1.0.tar.gz
Size 61.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f8343f604f024b2052e2daa1d6611682de0f9a56ffabc32c1fe61908dce73325
BLAKE2b-256 checksum
How to use checksums
206dfde18dfb15d8339c24dc332b039372c60443746791bb9d787a52ec68bb50
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 Aug 24, 2026.

Transparency log

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

Download URL castor_gw-0.1.0-py3-none-any.whl
Size 53.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef7014a4f6f2090e7e775b5b1d52b8a0164843334279767f326a60e95c99f3f6
BLAKE2b-256 checksum
How to use checksums
f7561965e32cd4715d9c179fce7ead990d29e48d958a0f151f1e766f3d2b4c53
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 Aug 24, 2026.

Transparency log

Security for castor-gw 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

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

Select from 2 files

Attestation for castor_gw-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 Aug 24, 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