# ESPNN - Electronic Stopping Power Neural Network
[](https://opensource.org/licenses/MIT) [](https://github.com/ale-mendez/ESPNN/actions/workflows/espnn_ci.yml/badge.svg) [](https://codecov.io/gh/ale-mendez/ESPNN) [](https://mybinder.org/v2/gh/ale-mendez/ESPNN/master?urlpath=%2Fdoc%2Ftree%2F%2Fworkflow%2Fprediction.ipynb)
<!-- [](https://colab.research.google.com/drive/1UCDj0XT_4Ex_Mvp1vurleeeDVcjed6vP) -->
<!-- [](http://depsy.org/package/python/) -->
The ESPNN is a Python-based deep neural network that enables users to predict the electronic stopping power cross-section for any ion and target[^1] combinations for a wide range of incident energies. The deep neural network was trained on tens of thousands of curated data points from the [IAEA database](https://www-nds.iaea.org/stopping/). See more details of the ESPNN in this [publication](https://github.com/ale-mendez/ESPNN-doc).
<!--
### Citation
```
@article{BivortHaiek2022,
author = {F. Bivort Haiek, A. M. P. Mendez, C. C. Montanari, D. M. Mitnik},
title = {ESPNN: The IAEA stopping power database neutral network. Part I: Monoatomic targets.},
year = {2022}
```
}-->
You can use the ESPNN package [remotely](#run-ESPNN-online) or [locally](#install-espnn). Find below all the usage options available.
If you encounter problems installing the package or notice troubling features in the stopping power model, make sure to post an [issue](https://github.com/ale-mendez/ESPNN/issues) or send us an email[^2].
## Run ESPNN online
The ESPNN package can be used remotely in the <a href="https://mybinder.org/v2/gh/ale-mendez/ESPNN/master?urlpath=%2Fdoc%2Ftree%2F%2Fworkflow%2Fprediction.ipynb" target="_blank">Binder</a> platform. There, you'll find a Jupyter notebook with a quick tutorial on how to use the ESPNN. You can compute the stopping power of any projectile-target combination in that Jupyter notebook. The stopping power results are saved in plain text files and can be downloaded by clicking on the folder icon in the vertical left menu. *Make sure to download them as they will be lost once the tab is closed.*
## Install ESPNN
To use the ESPNN on your computer, first, you'll need to install it. ESPNN is currently restricted to Python 3.7 and 3.8. We recommend using a Python virtual environment to this end (for example, see <a href="https://docs.anaconda.com/anaconda/install/index.html" target="_blank">anaconda</a> or <a href="https://virtualenv.pypa.io/en/stable/installation.html" target="_blank">virtualenv</a>). If you are not familiar with virtual environments and would like to rapidly start using Python, follow the <a href="https://docs.anaconda.com/anaconda/install/index.html" target="_blank">Anaconda</a> instructions according to your operating system:
- <a href="https://docs.anaconda.com/anaconda/install/linux/" target="_blank">Install anaconda in Linux</a>
- <a href="https://docs.anaconda.com/anaconda/install/windows/" target="_blank">Install anaconda in Windows</a>
- <a href="https://docs.anaconda.com/anaconda/install/mac-os/" target="_blank">Install anaconda in macOS</a>
### Using pip
The simplest way to install the ESPNN is via pip. Indistinctly, Ubuntu, Windows, and macOS users can install the package by typing in the terminal or the Anaconda bash terminal:
```console
pip install ESPNN
```
### Using this repository
You can also install the ESPNN package by cloning or [downloading](https://github.com/ale-mendez/ESPNN/archive/refs/heads/master.zip) this repository. To clone (make sure you have git installed) this repo, use the following commands in your terminal/anaconda bash terminal:
```console
git clone https://github.com/ale-mendez/ESPNN.git
cd ESPNN
pip install ESPNN/
```
If you [downloaded](https://github.com/ale-mendez/ESPNN/archive/refs/heads/master.zip) the zip, change your directory to your download folder and, in your terminal/anaconda bash terminal, type
```console
pip install ESPNN-master.zip
```
## Run ESPNN locally
Once you've [installed](#install-espnn) the ESPNN package in your preferred environment, you can run it by using a jupyter notebook or directly from terminal.
### Using a notebook
A basic tutorial of the ESPNN package usage is given in <a href="https://github.com/ale-mendez/ESPNN/blob/master/workflow/prediction.ipynb" target="_blank">prediction.ipynb</a>. The package requires the following parameters:
- ``projectile``: Chemical formula for the projectile
- ``target``: Chemical formula for the target
```python
import ESPNN
ESPNN.run_NN(projectile='He', target='Au')
```

The package automatically produces a ``matplotlib`` figure and a sample file named ``XY_prediction.dat``, where ``X`` is the name of the projectile and ``Y`` is the name of the target system.
```console
ls -a
. .. HHe_prediction.dat prediction.ipynb
```
#### Optional arguments
The energy grid used for the ESPNN calculation can be customized with arguments
- ``emin``: Minimum energy value in MeV/amu units (default: ``0.001``)
- ``emax``: Maximum energy value in MeV/amu units (default: ``10``)
- ``npoints``: Number of grid points (default: ``150``)
Furthermore, the figure plotting and output-file directory path can be modified via
- ``plot``: Prediction plot (default: ``True``)
- ``outdir``: Path to output folder (default: ``"./"``)
```python
ESPNN.run_NN(projectile='H', target='Ta', emin=0.0001, emax=100, npoints=200)
```

### From terminal
The ESPNN package can also be used from the terminal with a syntax analogous to the above given:
```console
python -m ESPNN H Au
```
Additional information about the optional arguments input can be obtained with the -h, --help flag:
```console
python -m ESPNN -h
```
## Funding Acknowledgements
The following institutions financially support this work: the Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) by the PIP-11220200102421CO and the Agencia Nacional de Promoción Científica y Tecnológica (ANPCyT) of Argentina PICT-2020-SERIEA-01931. CCM also acknowledges the financial support of the IAEA.
[^1]: *ESPNN first release considers only mono-atomic targets.*
[^2]: felipebihaiek@gmail.com, alemdz.7@gmail.com
Raw data
{
"_id": null,
"home_page": "https://github.com/ale-mendez/SPNN",
"name": "ESPNN",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Stopping Power, Energy Loss, Atoms, Molecules, Ions, Machine Learning, Neural Network",
"author": " Felipe Bivort Haiek, Alejandra Mendez, Claudia Montanari, Dar\u00edo Mitnik ",
"author_email": "felipebihaiek@gmail.com, alemdz.7@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/c5/b4/c538154a01bb4d1124fa97c8c3cd7c57e8c8a124b5c5a7d28b6ab09e2ffb/espnn-1.0.1.tar.gz",
"platform": null,
"description": "# ESPNN - Electronic Stopping Power Neural Network\n\n [](https://opensource.org/licenses/MIT) [](https://github.com/ale-mendez/ESPNN/actions/workflows/espnn_ci.yml/badge.svg) [](https://codecov.io/gh/ale-mendez/ESPNN) [](https://mybinder.org/v2/gh/ale-mendez/ESPNN/master?urlpath=%2Fdoc%2Ftree%2F%2Fworkflow%2Fprediction.ipynb)\n <!-- [](https://colab.research.google.com/drive/1UCDj0XT_4Ex_Mvp1vurleeeDVcjed6vP) -->\n <!-- [](http://depsy.org/package/python/) -->\n\nThe ESPNN is a Python-based deep neural network that enables users to predict the electronic stopping power cross-section for any ion and target[^1] combinations for a wide range of incident energies. The deep neural network was trained on tens of thousands of curated data points from the [IAEA database](https://www-nds.iaea.org/stopping/). See more details of the ESPNN in this [publication](https://github.com/ale-mendez/ESPNN-doc).\n\n <!--\n### Citation\n\n```\n@article{BivortHaiek2022,\nauthor = {F. Bivort Haiek, A. M. P. Mendez, C. C. Montanari, D. M. Mitnik},\ntitle = {ESPNN: The IAEA stopping power database neutral network. Part I: Monoatomic targets.},\nyear = {2022}\n\n```\n}-->\n\nYou can use the ESPNN package [remotely](#run-ESPNN-online) or [locally](#install-espnn). Find below all the usage options available.\n\nIf you encounter problems installing the package or notice troubling features in the stopping power model, make sure to post an [issue](https://github.com/ale-mendez/ESPNN/issues) or send us an email[^2].\n\n## Run ESPNN online\n\nThe ESPNN package can be used remotely in the <a href=\"https://mybinder.org/v2/gh/ale-mendez/ESPNN/master?urlpath=%2Fdoc%2Ftree%2F%2Fworkflow%2Fprediction.ipynb\" target=\"_blank\">Binder</a> platform. There, you'll find a Jupyter notebook with a quick tutorial on how to use the ESPNN. You can compute the stopping power of any projectile-target combination in that Jupyter notebook. The stopping power results are saved in plain text files and can be downloaded by clicking on the folder icon in the vertical left menu. *Make sure to download them as they will be lost once the tab is closed.*\n\n## Install ESPNN\n\nTo use the ESPNN on your computer, first, you'll need to install it. ESPNN is currently restricted to Python 3.7 and 3.8. We recommend using a Python virtual environment to this end (for example, see <a href=\"https://docs.anaconda.com/anaconda/install/index.html\" target=\"_blank\">anaconda</a> or <a href=\"https://virtualenv.pypa.io/en/stable/installation.html\" target=\"_blank\">virtualenv</a>). If you are not familiar with virtual environments and would like to rapidly start using Python, follow the <a href=\"https://docs.anaconda.com/anaconda/install/index.html\" target=\"_blank\">Anaconda</a> instructions according to your operating system:\n\n- <a href=\"https://docs.anaconda.com/anaconda/install/linux/\" target=\"_blank\">Install anaconda in Linux</a>\n- <a href=\"https://docs.anaconda.com/anaconda/install/windows/\" target=\"_blank\">Install anaconda in Windows</a>\n- <a href=\"https://docs.anaconda.com/anaconda/install/mac-os/\" target=\"_blank\">Install anaconda in macOS</a>\n\n### Using pip\n\nThe simplest way to install the ESPNN is via pip. Indistinctly, Ubuntu, Windows, and macOS users can install the package by typing in the terminal or the Anaconda bash terminal:\n\n```console\npip install ESPNN\n```\n\n### Using this repository\n\nYou can also install the ESPNN package by cloning or [downloading](https://github.com/ale-mendez/ESPNN/archive/refs/heads/master.zip) this repository. To clone (make sure you have git installed) this repo, use the following commands in your terminal/anaconda bash terminal:\n\n```console\ngit clone https://github.com/ale-mendez/ESPNN.git\ncd ESPNN\npip install ESPNN/\n```\n\nIf you [downloaded](https://github.com/ale-mendez/ESPNN/archive/refs/heads/master.zip) the zip, change your directory to your download folder and, in your terminal/anaconda bash terminal, type\n\n```console\npip install ESPNN-master.zip\n```\n\n## Run ESPNN locally\n\nOnce you've [installed](#install-espnn) the ESPNN package in your preferred environment, you can run it by using a jupyter notebook or directly from terminal.\n\n### Using a notebook\n\nA basic tutorial of the ESPNN package usage is given in <a href=\"https://github.com/ale-mendez/ESPNN/blob/master/workflow/prediction.ipynb\" target=\"_blank\">prediction.ipynb</a>. The package requires the following parameters:\n\n- ``projectile``: Chemical formula for the projectile\n- ``target``: Chemical formula for the target\n\n```python\nimport ESPNN\nESPNN.run_NN(projectile='He', target='Au')\n```\n\n\n\nThe package automatically produces a ``matplotlib`` figure and a sample file named ``XY_prediction.dat``, where ``X`` is the name of the projectile and ``Y`` is the name of the target system.\n\n```console\nls -a\n. .. HHe_prediction.dat prediction.ipynb \n```\n\n#### Optional arguments\n\nThe energy grid used for the ESPNN calculation can be customized with arguments\n\n- ``emin``: Minimum energy value in MeV/amu units (default: ``0.001``)\n- ``emax``: Maximum energy value in MeV/amu units (default: ``10``)\n- ``npoints``: Number of grid points (default: ``150``)\n\nFurthermore, the figure plotting and output-file directory path can be modified via\n\n- ``plot``: Prediction plot (default: ``True``)\n- ``outdir``: Path to output folder (default: ``\"./\"``)\n\n```python\nESPNN.run_NN(projectile='H', target='Ta', emin=0.0001, emax=100, npoints=200)\n```\n\n\n\n### From terminal\n\nThe ESPNN package can also be used from the terminal with a syntax analogous to the above given:\n\n```console\npython -m ESPNN H Au\n```\n\nAdditional information about the optional arguments input can be obtained with the -h, --help flag:\n\n```console\npython -m ESPNN -h\n```\n\n## Funding Acknowledgements\n\nThe following institutions financially support this work: the Consejo Nacional de Investigaciones Cient\u00edficas y T\u00e9cnicas (CONICET) by the PIP-11220200102421CO and the Agencia Nacional de Promoci\u00f3n Cient\u00edfica y Tecnol\u00f3gica (ANPCyT) of Argentina PICT-2020-SERIEA-01931. CCM also acknowledges the financial support of the IAEA.\n\n[^1]: *ESPNN first release considers only mono-atomic targets.*\n[^2]: felipebihaiek@gmail.com, alemdz.7@gmail.com\n",
"bugtrack_url": null,
"license": "The GPLv3 License",
"summary": "Electronic Stopping Power Neural Network predictor",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/ale-mendez/SPNN"
},
"split_keywords": [
"stopping power",
" energy loss",
" atoms",
" molecules",
" ions",
" machine learning",
" neural network"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c5b4c538154a01bb4d1124fa97c8c3cd7c57e8c8a124b5c5a7d28b6ab09e2ffb",
"md5": "acd1d4c8debdd92c66a1ee8ebe3d82f7",
"sha256": "6775cb7fbe95a45fe822b4bdd470027f31e6e1ecde155ce0cc7fee82e1522881"
},
"downloads": -1,
"filename": "espnn-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "acd1d4c8debdd92c66a1ee8ebe3d82f7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 70583,
"upload_time": "2025-07-16T22:57:14",
"upload_time_iso_8601": "2025-07-16T22:57:14.778040Z",
"url": "https://files.pythonhosted.org/packages/c5/b4/c538154a01bb4d1124fa97c8c3cd7c57e8c8a124b5c5a7d28b6ab09e2ffb/espnn-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-16 22:57:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ale-mendez",
"github_project": "SPNN",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "espnn"
}