Metadata-Version: 2.4
Name: opentps-core
Version: 3.0.1
Summary: Core library for OpenTPS - open source treatment planning system
Project-URL: Homepage, http://opentps.org/
Author-email: Sylvain Deffet <sylvaindeffet@gmail.com>, Damien Dasnoy <damien.dasnoy@uclouvain.be>, Valentin Hamaide <valentin.hamaide@uclouvain.be>, Guillaume Janssens <guillaume.janssens@iba-group.com>, Kevin Souris <kevin.souris@iba-group.com>, Sophie Wuyckens <sophie.wuyckens@uclouvain.be>
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: <3.13,>=3.12
Requires-Dist: cachecontrol
Requires-Dist: nibabel<6.0.0,>=5.0.0
Requires-Dist: numpy>=2.0.0
Requires-Dist: pandas>=2.2.0
Requires-Dist: pillow>=10.0.0
Requires-Dist: pip
Requires-Dist: pydicom>=3.0.1
Requires-Dist: pymedphys>=0.41.0
Requires-Dist: requests
Requires-Dist: scikit-image
Requires-Dist: setuptools>=67.8.0
Requires-Dist: simpleitk>=2.2.1
Requires-Dist: sparse-dot-mkl>=0.9.6; platform_machine == 'x86_64' or platform_machine == 'AMD64'
Description-Content-Type: text/markdown

# opentps-core

Core library of opentps, a Python application for treatment planning in radiation therapy, based on the MCsquare Monte Carlo dose engine and a CCC dose engine for photons.

## Installation (Linux):

Requirements are listed in pyproject.toml.
To install all required dependencies:

```
poetry install
```

Additional system libraries (Ubuntu 19 or more recent):

```
sudo apt install libmkl-rt
```

Additional system libraries (Ubuntu 18):

```
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
sudo apt-get update
sudo apt-get install intel-mkl-64bit-2020.1-102
echo 'export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:$LD_LIBRARY_PATH' | sudo tee -a /etc/profile.d/mkl_lib.sh

# adapted from: http://dirk.eddelbuettel.com/blog/2018/04/15/
```

Optional python modules:

```
pip3 install --user tensorflow
pip3 install --user keras
pip3 install --user cupy
```

## Installation (Windows):

1. Install anaconda on your Windows computer

2. Open Anaconda Prompt (via the Anaconda application)

3. Create a new Anaconda environment:

```
conda create --name OpenTPS python=3.12
```

4. Activate the new environment:

```
conda activate OpenTPS
```

5. Install the following python modules:
   Python modules:

```
pip3 install --upgrade pip
pip3 install pydicom
pip3 install numpy>=1.24.0
pip3 install scipy
pip3 install matplotlib
pip3 install Pillow
pip3 install sparse_dot_mkl
pip3 install SimpleITK
pip3 install pandas
pip3 install scikit-image
pip3 install pymedphys==0.40.0
pip3
```

Optional python modules:

```
pip3 install tensorflow
pip3 install keras
pip3 install cupy
```
