A python package for simulating populations of gravitational-wave sources.
Project description
gwsim_pop
A Python package for simulating populations of gravitational-wave sources.
Installation
We recommend using uv to manage virtual environments for installing gwsim_pop.
If you don't have uv installed, you can install it with pip. See the project pages for more details:
- Install via pip:
pip install --upgrade pip && pip install uv - Project pages: uv on PyPI | uv on GitHub
- Full documentation and usage guide: uv docs
Requirements
- Python 3.10 or higher
- Operating System: Linux, macOS, or Windows
Note: The package is built and tested against Python 3.10-3.12. When creating a virtual environment with uv,
specify the Python version to ensure compatibility:
uv venv --python 3.10 (replace 3.10 with your preferred version in the 3.10-3.12 range).
This avoids potential issues with unsupported Python versions.
Install from PyPI
The recommended way to install gwsim_pop is from PyPI:
# Create a virtual environment (recommended with uv)
uv venv --python 3.10
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install gwsim_pop
Optional Dependencies
For development or specific features:
# Development dependencies (testing, linting, etc.)
uv pip install gwsim_pop[dev]
# Documentation dependencies
uv pip install gwsim_pop[docs]
# All dependencies
uv pip install gwsim_pop[dev,docs]
Install from Source
For the latest development version:
git clone git@github.com:Leuven-Gravity-Institute/gwsim_pop.git
cd gwsim_pop
# Create a virtual environment (recommended with uv)
uv venv --python 3.10
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install .
Development Installation
To set up for development:
git clone git@github.com:Leuven-Gravity-Institute/gwsim_pop.git
cd gwsim_pop
# Create a virtual environment (recommended with uv)
uv venv --python 3.10
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install ".[dev]"
# Install the commitlint dependencies
npm install
# Install pre-commit hooks
pre-commit install
pre-commit install --hook-type commit-msg
Verify Installation
Check that gwsim_pop is installed correctly:
gwsim_pop --help
python -c "import gwsim_pop; print(gwsim_pop.__version__)"
Documentation
Full documentation to be available at https://leuven-gravity-institute.github.io/gwsim_pop.
Contributing
Contributions are welcome!
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
Release Schedule
Releases follow a fixed schedule: every Tuesday at 00:00 UTC, unless an emergent bugfix is required. This ensures predictable updates while allowing flexibility for critical issues. Users can view upcoming changes in the draft release on the GitHub Releases page.
Testing
Run the test suite:
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For questions or issues, please open an issue on GitHub or contact the maintainers.
Project details
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 gwsim_pop-0.0.2.tar.gz.
File metadata
- Download URL: gwsim_pop-0.0.2.tar.gz
- Upload date:
- Size: 25.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf57d746796b55b797f70f008c4c57ba585778367942ee618331a543bcc8668
|
|
| MD5 |
a973e199689b54b532d49d90f3f58986
|
|
| BLAKE2b-256 |
12a3d520740b74c0b496f8d357bf276cce09b30ee24a77b57650aed9489918e6
|
Provenance
The following attestation bundles were made for gwsim_pop-0.0.2.tar.gz:
Publisher:
create_tag.yml on Leuven-Gravity-Institute/gwsim_pop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gwsim_pop-0.0.2.tar.gz -
Subject digest:
eaf57d746796b55b797f70f008c4c57ba585778367942ee618331a543bcc8668 - Sigstore transparency entry: 935037983
- Sigstore integration time:
-
Permalink:
Leuven-Gravity-Institute/gwsim_pop@81bb8305db7a0e7ad5ba639ce70cf2be67449fd9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Leuven-Gravity-Institute
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
create_tag.yml@81bb8305db7a0e7ad5ba639ce70cf2be67449fd9 -
Trigger Event:
schedule
-
Statement type:
File details
Details for the file gwsim_pop-0.0.2-py3-none-any.whl.
File metadata
- Download URL: gwsim_pop-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0328ecfa7cf1c17c8e924f1146cd3c9e57bfc4d0b78b28e6feadd70e403e782
|
|
| MD5 |
665461cb8b1200d3cf58ca8cbab56a47
|
|
| BLAKE2b-256 |
63ed4cf56d902150e64fa3292f2bf7172a2d740f93b47991504cd86b8dbcd58f
|
Provenance
The following attestation bundles were made for gwsim_pop-0.0.2-py3-none-any.whl:
Publisher:
create_tag.yml on Leuven-Gravity-Institute/gwsim_pop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gwsim_pop-0.0.2-py3-none-any.whl -
Subject digest:
b0328ecfa7cf1c17c8e924f1146cd3c9e57bfc4d0b78b28e6feadd70e403e782 - Sigstore transparency entry: 935038008
- Sigstore integration time:
-
Permalink:
Leuven-Gravity-Institute/gwsim_pop@81bb8305db7a0e7ad5ba639ce70cf2be67449fd9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Leuven-Gravity-Institute
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
create_tag.yml@81bb8305db7a0e7ad5ba639ce70cf2be67449fd9 -
Trigger Event:
schedule
-
Statement type: