Skip to main content

Electronic Stopping Power Neural Network predictor

Project description

ESPNN - Electronic Stopping Power Neural Network

License: MIT develstat codecov Open In Colab

The ESPNN is a python-based deep neural network that allows the user to predict the electronic stopping power cross-section for any ion and target[^1] combination for a wide range of incident energies. The deep neural network was trained with many tens of thousands curated data points from the IAEA database. See more details of the ESPNN in this publication.

You can use the ESPNN package remotely or locally. Find below all the usage options available.

Run ESPNN online

The ESPNN package can be used remotely in the Google Colab platform[^2]. There, you'll find a jupyter notebook with a quick tutorial on how to use the ESPNN. You can also make a copy of the notebook to your own personal Drive and compute the stopping power of any projectile-target combination.

Install ESPNN

To use the ESPNN in your computer, first you'll need to install it. We recommend using a python virtual environment to this end (for example, see anaconda or virtualenv). If you are not familiar with virtual environments and would like to rapidly start using python, follow the anaconda indications according to your operating system:

Using pip

The simplest way to install the ESPNN is via pip. Indistinctively, Ubuntu, Windows and macOS users can install the package by typing in the terminal or the anaconda bash terminal:

pip install ESPNN

Using this repository

You can also install the ESPNN package by cloning or downloading this repository. To clone (make sure you have git installed) this repo, use the following commands in your terminal/anaconda bash terminal:

git clone https://github.com/ale-mendez/ESPNN.git
cd ESPNN
pip install ESPNN/

If you downloaded the zip, change your directory to your download folder and, in your terminal/anaconda bash terminal, type

pip install ESPNN-master.zip

Run ESPNN locally

Once you've installed 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 prediction.ipynb. The package requires the following parameters:

  • projectile: Chemical formula for the projectile
  • target: Chemical formula for the target

Optionally, you can provide these parameters:

  • projectile_mass: Mass in amu for the projectile
  • target_mass: Mass in amu for the target
import ESPNN
ESPNN.run_NN(projectile='He', projectile_mass=4.002602, target='Au', target_mass=196.966569)

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.

ls -a
.  ..  HHe_prediction.dat  prediction.ipynb 

Other 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: 1000)

Furthermore, the figure plotting and output-file directory-path can be modified via

  • plot: Prediction plot (default: True)
  • outdir: Path to output folder (default: "./")
ESPNN.run_NN(projectile='He', projectile_mass=4.002602, target='Au', target_mass=196.966569, emin=0.01, emax=1, npoints=50)

From terminal

The ESPNN package can also be used from terminal with a syntaxis analogous to the above given:

python -m ESPNN H Au -Ym 196.966569

Additional information about the optional arguments input can be obtained with the -h, --help flag:

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]: A Google account is required.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ESPNN-0.1.4.tar.gz (568.0 kB view details)

Uploaded Source

Built Distribution

ESPNN-0.1.4-py3-none-any.whl (568.4 kB view details)

Uploaded Python 3

File details

Details for the file ESPNN-0.1.4.tar.gz.

File metadata

  • Download URL: ESPNN-0.1.4.tar.gz
  • Upload date:
  • Size: 568.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for ESPNN-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b4655fba17983b3f44f33970bcc6cd8ad2ba8d9354d32dc887f93f60e8c891ac
MD5 6ee291f09e3f6a8f90f4f334fd2b903d
BLAKE2b-256 6c88f74fdc0282635f26110afcb141d8483c0220ecd08999dfcf6cb3561b792c

See more details on using hashes here.

Provenance

File details

Details for the file ESPNN-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ESPNN-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 568.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for ESPNN-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 61373cea5161f4ee9233de95d60ea39cd5e74e97188fa9abefc275f5801e244a
MD5 023ab126de77b4cab80dfcce82e14dbc
BLAKE2b-256 1ef05100108b7b6432da8d60d4f04bcc7281937914cb84f70e13e9d86ad85b57

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page