Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OpenGATE/opengate
Gate 10 (beta)
https://github.com/OpenGATE/opengate
medical-physics monte-carlo-simulation physics-simulation python
Last synced: 2 months ago
JSON representation
Gate 10 (beta)
- Host: GitHub
- URL: https://github.com/OpenGATE/opengate
- Owner: OpenGATE
- License: lgpl-3.0
- Created: 2021-11-29T10:40:14.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T13:44:15.000Z (3 months ago)
- Last Synced: 2024-10-29T15:09:28.724Z (3 months ago)
- Topics: medical-physics, monte-carlo-simulation, physics-simulation, python
- Language: C
- Homepage: http://www.opengatecollaboration.org
- Size: 15.5 MB
- Stars: 46
- Watchers: 9
- Forks: 40
- Open Issues: 78
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-medphys - opengate - ![Static Badge](https://img.shields.io/badge/Python-stuff?style=flat&logo=python&color=lime) GATE is an advanced opensource software developed by the international OpenGATE collaboration and dedicated to numerical simulations in medical imaging and radiotherapy. GATE is based on the Geant4 toolkit. ![PyPI](https://img.shields.io/pypi/v/opengate) (Libraries)
README
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/OpenGATE/opengate?logo=github)
[![Read the Docs](https://img.shields.io/readthedocs/opengate-python/master?logo=read-the-docs&style=plastic)](https://opengate-python.readthedocs.io/)
[![CI](https://github.com/OpenGATE/opengate/actions/workflows/main.yml/badge.svg)](https://github.com/OpenGATE/opengate/actions/workflows/main.yml)
[![cirrus CI](https://api.cirrus-ci.com/github/OpenGATE/opengate.svg)](https://cirrus-ci.com/github/OpenGATE/opengate)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/OpenGATE/opengate/master.svg)](https://results.pre-commit.ci/latest/github/OpenGATE/opengate/master)## This is GATE10 **beta** version. The first non-beta release will be officially announced ~in the summer~ autumn 2024.
See the [User Guide](https://opengate-python.readthedocs.io). The current version uses [Geant4 11.2.1](https://geant4.web.cern.ch).
### How to install (short version)
*Compatible with Python 3.9, 3.10, 3.11, 3.12. On Windows multithreading and Qt visualization are not (yet) available.*
First, create an environment (not mandatory but highly advised)
```
python -m venv opengate_env
source opengate_env/bin/activate
```or you can use the conda environment.
```
conda create --name opengate_env python=3.12
conda activate opengate_env
```Then install the package opengate. The package ```opengate_core``` is automatically downloaded. ```opengate_core``` installs Geant4 librairies.
```
pip install --upgrade pip
pip install --pre opengate
```*Warning* while it is still beta, the `--pre` option is needed.
If you already installed the packages and want to upgrade to the latest version:
```
pip install --upgrade --pre opengate
```Once installed, you can run all tests:
````
opengate_tests
````**WARNING (1)** The first time you run this command, the geant4 data and the test data will be downloaded. If the download fails (on some systems), try to add the following command before running opengate_tests:
````
export GIT_SSL_NO_VERIFY=1
````All tests are in the folder [here](https://github.com/OpenGATE/opengate/tree/master/opengate/tests/src). The test data (binary files) are stored, for technical reasons, in this git: https://gitlab.in2p3.fr/opengamgate/gam_tests_data (which is stored as a git submodule).
**WARNING (2)** Some tests (e.g. test034) needs [gaga-phsp](https://github.com/dsarrut/gaga-phsp) which needs [pytorch](https://pytorch.org/) that cannot really be automatically installed by the previous pip install (at least we don't know how to do). So, in order to run those tests, you will have to install both PyTorch and gaga-phsp first with
````
pip install torch
pip install gaga-phsp
````**WARNING (3)** With some linux systems (not all), you may encounter an error similar to “cannot allocate memory in static TLS block”. In that case, you must add a specific path to the linker as follows:
````
export LD_PRELOAD=::${LD_PRELOAD}
````The documentation is here: https://opengate-python.readthedocs.io/en/master/user_guide/index.html
The test history can be visualized here: https://opengate.github.io/opengate_tests_results/
### How to install (long version, for developers)
See the [developer guide](https://opengate-python.readthedocs.io/en/master/developer_guide/index.html#installation-for-developers)
## Included third party C++ libraries
- https://github.com/pybind/pybind11
- https://github.com/fmtlib/fmt
- https://github.com/p-ranav/indicators