PycWB is a modularized Python package for gravitational wave burst search based on the core function of cWB. The documentation can be found at pycwb.readthedocs.io.
PycWB is available on PyPI. You can install it with pip. Some dependencies are required to be installed before installing pycWB with pip. The easiest way is to install them with conda.
conda create -n pycwb "python>=3.9,<3.11"
conda activate pycwb
conda install -c conda-forge root=6.26.10 healpix_cxx=3.81 nds2-client python-nds2-client lalsuite setuptools_scm cmake pkg-config
python3 -m pip install pycwb
Currently, pycWB is only available for x64 architecture. For Apple Silicon users, you can install the 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
conda activate pycwb
conda config --env --set subdir osx-64
conda install -c conda-forge "python>=3.9,<3.11" root=6.26.10 healpix_cxx=3.81 nds2-client python-nds2-client lalsuite setuptools_scm cmake pkg-config ruamel.yaml htcondor
conda create -n pycwb python
conda activate pycwb
conda install -c conda-forge root=6.26.10 healpix_cxx=3.81 nds2-client python-nds2-client lalsuite setuptools_scm cmake pkg-config
git clone [email protected]:yumeng.xu/pycwb.git
cd pycwb
make install
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
- Google Colab tutorial: pycWB_GW150914.ipynb