Skip to main content

GWFIT

gwfit logo

Gravitational WaveForm Integration Tools

PyPI version GitLab Python License

GWFIT is a Python package for gravitational-wave modelling and analysis, with utilities for waveform generation, inspiral modelling, numerical-relativity data analysis, horizon fluxes, and neutron-star calculations.

Features

  • Gravitational-waveform and inspiral modelling
  • Numerical-relativity data handling
  • Horizon flux and tidal-heating calculations
  • Neutron-star utilities
  • Physical constants and useful relations

Installation

Create and activate a conda environment

conda create -n gwfit-env python=3.11 -y
conda activate gwfit

There are several ways to install GWFIT depending on whether you want the latest stable release or the development version.

1. Install the latest stable release from PyPI

For most users, the recommended method is to install GWFIT directly from PyPI:

python -m pip install gwfit

2. Install the latest stable release from git repository

python -m pip install git+https://gitlab.com/samanwaya-mukherjee/gwfit.git

2. Install by cloning the source

Clone the repository:

git clone https://gitlab.com/samanwaya-mukherjee/gwfit.git
cd gwfit
python -m pip install .

[ For development, the editable installation is recommended so that changes to the source code are immediately available.

Install GWFIT in editable mode:

python -m pip install -e .

]

Legacy functionality

Some older implementations are included under gwfit.legacy. Their additional dependencies can be installed with:

python -m pip install -e ".[legacy]"

Basic usage

After installation, GWFIT can be imported as:

import gwfit

The main components are organized into subpackages:

from gwfit import physics
from gwfit import waveforms
from gwfit import nr
from gwfit import neutron_star

For example, specific modules can be imported with:

from gwfit.waveforms import inspiral_model
from gwfit.nr import nr_data_utils
from gwfit.physics import constants

Project structure

gwfit/
├── LICENSE
├── pyproject.toml
├── README.md
└── src/
    └── gwfit/
        ├── __init__.py
        ├── legacy/
        │   ├── nr_data_utils_legacy.py
        │   ├── nr_heat_legacy.py
        │   └── inspiral_th_model_legacy.py
        ├── neutron_star/
        │   ├── __init__.py
        │   └── neutron_star_functions.py
        ├── nr/
        │   ├── __init__.py
        │   ├── nr_data_utils.py
        │   └── nr_heat.py
        ├── physics/
        │   ├── __init__.py
        │   ├── constants.py
        │   └── useful_relations.py
        └── waveforms/
            ├── __init__.py
            ├── inspiral_model.py
            └── waveform_functions.py

Dependencies

The core package currently depends on:

  • NumPy
  • SciPy
  • SXS
  • Matplotlib

Additional dependencies for legacy functionality are:

  • h5py
  • PyCBC

Development

GWFIT is under active development. Contributions, suggestions, and bug reports are welcome.

License

GWFIT is distributed under the MIT License.

Author

Samanwaya Mukherjee

Metadata

Release files for GWFIT 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GWFIT 1.1.2
File Size Uploaded Provenance Actions
gwfit-1.1.2.tar.gz 174.1 kB Without provenance Details for gwfit-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for GWFIT 1.1.2
File Interpreter ABI Platform Actions
gwfit-1.1.2-py3-none-any.whl Python 3 none any Details for gwfit-1.1.2-py3-none-any.whl

Total release size: 210.8 kB

Release files / gwfit-1.1.2.tar.gz

Download URL gwfit-1.1.2.tar.gz
Size 174.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d8419eee70794dfebace8e0ac9cc44db4d5e36012d011b0b22a9c27ce5d47c40
BLAKE2b-256 checksum
How to use checksums
be0a8f0faed6cfd5af5d0504078a7b11ddf2cb3c572ab54de5f7ef642db28f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / gwfit-1.1.2-py3-none-any.whl

Download URL gwfit-1.1.2-py3-none-any.whl
Size 36.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53d48d5f1a9656e61567523e6bdb89c5354c177f01bb9a42dede9f1c7c3047c3
BLAKE2b-256 checksum
How to use checksums
1c99effbb9b9cda8b69ac38bd1bc7739e5a026b9c309ac9bd245c5f51cedfc74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for GWFIT 1.1.2

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.

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