Installation
------------
.. role:: raw-html(raw)
:format: html
Minimum requirements
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Although CoperniFUS can theoretically run on any system supporting Python 3.12 it has currently been tested on
- macOS 15
- Ubuntu 24.04.2 LTS, Linux Mint 21.1
- Windows 10 & 11.
Acoutic simulations being by far the most taxing operations, hardware requirements will largely depend on the characteristics of the kwave simulations being considered. Please refer to `k-Wave documentation `_ to check if your hardware is supported by the C++ binaries leveraged by `k-wave-python `_.
Installation procedure
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0. Optional but highly recommended: setup a dedicated Python 3.12 environment (I recommended using `miniconda `_) :raw-html:`
` - Using `conda`: ``conda create -n coperniFUS_env python=3.12`` :raw-html:`
` - Activate the newly created environment using ``conda activate coperniFUS_env``
1. Install ``coperniFUS`` using ``pip`` (if you are using windows, you might need to install Git) :raw-html:`
` - ``pip install git+https://github.com/Tomaubier/CoperniFUS.git``
1a. *For Linux users:* Install ``libxcb-cursor-dev`` to satisfy ``PyQt6`` requirements ``sudo apt-get install -y libxcb-cursor-dev`` `see this post `_ for additional details.
1b. *For macOS users:* ``k-wave-python`` currently requiers ``fftw hdf5 zlib libomp`` to be installed. This requirement con be satisfied by running ``brew install fftw hdf5 zlib libomp`` using `Homebrew `_. `See this k-wave-python issue `_ for additional details.
2. Launch ``coperniFUS`` by running ``coperniFUS`` in a terminal. Checkout `this section `_ for detailed usage instructions.
Alternative installation procedure for development purposes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0. Same as in the regular installation procedure. Although creating a dedicated environment for development would be recommanded. Feel free to create it using ``conda create -n coperniFUS_DEV_env python=3.12``.
1. `Fork CoperniFUS's repository `_
2. Clone your forked repository locally and proceed with the installation by running ``pip install -e .`` from the base directory.
This way, changes made to the source code will directly take effect when relauching CoperniFUS.
.. _running_autonatic_test:
Running automated tests
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In an environnement where CoperniFUS is installed:
1. Install testing dependencies ``pip install pytest pytest-qt``
2. Run ``pytest tests/test_viewer.py``