A Python package for coherent gravitational wave burst analysis
Project description
PycWB
PycWB is a modularized Python package for gravitational wave burst search based on the core functions of cWB. The documentation can be found at pycwb.readthedocs.io.
Installation
Install PycWB with pip
PycWB is available on PyPI. You can install it with pip.
Some dependencies are required before installing pycwb with pip.
The easiest way is to install them with conda.
Python requirement:
>=3.10
conda create -n pycwb python=3.13
conda activate pycwb
conda install -c conda-forge root=6 healpix_cxx=3 nds2-client python-nds2-client lalsuite python-ligo-lw setuptools_scm cmake pkg-config
python3 -m pip install pycwb
Currently, the ROOT-enabled pycwb build is only available for x86_64 architecture. You can install the pure Python version of pycwb without installing ROOT:
conda create -n pycwb python=3.13
conda activate pycwb
conda install -c conda-forge nds2-client python-nds2-client lalsuite python-ligo-lw setuptools_scm cmake pkg-config
python3 -m pip install pycwb
For Apple Silicon users, if you need the ROOT version, install dependencies with the following commands:
# make sure rosetta is installed
softwareupdate --install-rosetta --agree-to-license
# Optional: export CONDA_BUILD=1
conda create -n pycwb_x64
conda activate pycwb_x64
conda config --env --set subdir osx-64
conda install python==3.11 root=6.28 healpix_cxx=3 nds2-client python-nds2-client lalsuite python-ligo-lw setuptools_scm cmake pkg-config ruamel.yaml htcondor
python3 -m pip install pycwb
Install PycWB from source
conda create -n pycwb python
conda activate pycwb
conda install -c conda-forge root=6 healpix_cxx=3 nds2-client python-nds2-client lalsuite python-ligo-lw setuptools_scm cmake pkg-config
git clone git@git.ligo.org:yumeng.xu/pycwb.git
cd pycwb
python -m pip install .
Again, for Apple Silicon users, if you don't need the ROOT version, remove
root=6andhealpix_cxx=3from the dependencies in the command above. The installation process will automatically install the pure Python version ofpycwb.
Usage
Example project can be found in examples
from pycwb.workflow.run import search
search('./user_parameters.yaml')
or run with command line
pycwb run ./user_parameters.yaml
Verify installation
pycwb --version
pycwb --help
Quick start for config setup
For one-command project setup and optional job submission, see QUICKSTART_CONFIG_SETUP.md.
Interactive tutorial
- Google Colab tutorial: pycWB_GW150914.ipynb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pycwb-1.0.0a1.tar.gz.
File metadata
- Download URL: pycwb-1.0.0a1.tar.gz
- Upload date:
- Size: 42.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5248daf6baa36a381024b6a42634e40e9dd39c0573f860c09fbb0d6bb0c2fc1e
|
|
| MD5 |
cb90856bf36d71330560ef6a97a6910d
|
|
| BLAKE2b-256 |
2d6647c5404757596fe88d437ec36d33885e66207c8f632b29655b327bcdd7fd
|