Installation

Installation

PyPI package Conda package Supported Python versions

The fastest way of installing this package is through PyPI or Conda:

python3 -m pip install tensorwaves[jax]

And with support for amplitude analysis:

python3 -m pip install tensorwaves[jax,pwa]
conda install -c conda-forge tensorwaves jax jaxlib

And with support for amplitude analysis:

conda install -c conda-forge ampform phasespace

This installs the latest, stable release that you can find on the stable branch.

Optional dependencies can be installed as follows:

pip install tensorwaves[pwa]  # installs tensorwaves with ampform
pip install tensorwaves[jax,scipy,tf]
pip install tensorwaves[all]  # all runtime dependencies

The latest version on the main branch can be installed as follows:

python3 -m pip install git+https://github.com/ComPWA/tensorwaves@main

In that case, however, we highly recommend using the more dynamic ‘editable installation’ instead. This goes as follows:

  1. Get the source code:

    git clone https://github.com/ComPWA/tensorwaves.git
    cd tensorwaves
    
  2. [Recommended] Create a virtual environment (see here).

  3. Install the project as an ‘editable installation’ and install additional packages for the developer:

    python3 -m pip install -e .[dev]
    

That’s all! Have a look at the General examples page to try out the package. You can also have a look at the Help developing page for tips on how to work with this ‘editable’ developer setup!