Metadata-Version: 2.1
Name: opentps-gui
Version: 1.0.4
Summary: Open source TPS for advanced proton therapy
Home-page: http://opentps.org/
License: GPLv3
Author: Sylvain Deffet
Author-email: sylvaindeffet@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Pillow (>=9.2.0,<10.0.0)
Requires-Dist: PyQt5 (==5.14)
Requires-Dist: SimpleITK (>=2.1.1,<3.0.0)
Requires-Dist: numpy (>=1.23.2,<2.0.0)
Requires-Dist: pandas (>=1.4.3,<2.0.0)
Requires-Dist: pydicom (>=2.3.0,<3.0.0)
Requires-Dist: pyqtgraph (>=0.12.4,<0.13.0)
Requires-Dist: setuptools (>=61.0.0,<62.0.0)
Requires-Dist: sparse-dot-mkl (>=0.8.2,<0.9.0)
Requires-Dist: vtk (>=9.1.0,<10.0.0)
Description-Content-Type: text/markdown

# opentps-gui

GUI of opentps, a Python application for treatment planning in proton therapy, based on the MCsquare Monte Carlo dose engine.


## Installation (Linux):
Requirements are listed in pyproject.toml.
To install all required dependencies:
``` 
poetry install
``` 

Note: VTK is only compatible with Python version <= 3.9. Do not use Python 3.10


## Installation (Windows):
Note: VTK is only compatible with Python version <= 3.9. Do not use Python 3.10

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.8
``` 

4) Activate the new environment:
``` 
conda activate OpenTPS
``` 

5) Install the following python modules:
Python modules:
``` 
pip3 install --upgrade --user pip
pip3 install --user pydicom
pip3 install --user numpy
pip3 install --user scipy
pip3 install --user matplotlib
pip3 install --user Pillow
pip3 install --user PyQt5==5.14
pip3 install --user pyqtgraph
pip3 install --user sparse_dot_mkl
pip3 install --user vtk
pip3 install --user SimpleITK
pip3 install --user pandas
pip3
```

Optional python modules:
``` 
pip3 install --user tensorflow
pip3 install --user keras
pip3 install --user cupy
```


## Run:
```
python3 main.py
```

or from a python script:

```python
import opentps.gui as opentps_gui
opentps_gui.run()
```


