Installation¶
Python 3.13 is recommended; Python 3.11 or newer is required. ROOT is not required for PycWB >= 1.
Install from PyPI¶
Create a separate environment, then install PycWB:
conda create -n pycwb -c conda-forge python=3.13 pip \
nds2-client python-nds2-client lalsuite python-ligo-lw
conda activate pycwb
python -m pip install --pre pycwb
pycwb --version
The --pre flag selects the current 1.x prereleases from PyPI.
NDS2 client libraries are supplied through conda-forge.
Postproduction and waveform extras¶
Production searches need no extras. Install optional components only where they are used:
Extra |
Needed for |
|---|---|
|
Postproduction: |
|
Reading cWB ROOT output with |
|
The TensorFlow autoencoder glitch score. |
|
PyCBC waveform integrations. |
python -m pip install --pre 'pycwb[xgboost]'
python -m pip install --pre 'pycwb[xgboost,root]' # several extras
Install from source¶
For unreleased changes, activate the environment created above and install the source checkout:
git clone https://git.ligo.org/yumeng.xu/pycwb.git
cd pycwb
python -m pip install .
From this checkout, use for example '.[xgboost]' or '.[root]' to install extras.
For an editable development install, see Development Setup.
Next steps¶
Continue with Your First Search or Postproduction.
Choose a release channel: stable and prerelease installation options.
For development and documentation builds, see Development Setup.