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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gwfit-1.0.0.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gwfit-1.0.0-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file gwfit-1.0.0.tar.gz.

File metadata

  • Download URL: gwfit-1.0.0.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for gwfit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 643b84bf8d654342d1c8c35558f95a81aea1f1e348fe6695dd3011fd8231cf6b
MD5 980e49483b023e8d373319d12659d1fe
BLAKE2b-256 09b1925cd3700bea332df99490c88ea91c9b70b17ce813d70b3e49adfe3e74a1

See more details on using hashes here.

File details

Details for the file gwfit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gwfit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for gwfit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5ffbb08bd9912b5222bb7fc07245496a44092a346bc0f0b3e598dbdaf45ed36
MD5 7f16be69d3ae137da2e8719a5794748a
BLAKE2b-256 6d3f9922812c3ef638f8426f2d70a3d305fe6314f1b461bb2a57416f35236285

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

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