Fit various Electron EMIssion models on experimental data.
Project description
EEmiLib
EEmiLib (Electron EMIssion Library) provides several electron emission models and a simple interface to fit them to experimental data. It includes both a graphical user interface (GUI) for ease of use and a Python API for advanced users.
The library focuses on electron emission models relevant to multipactor simulations, i.e. for impinging energies ranging from a few eV to several hundred eV.
This project is still under active development. I maintain it in my free time, but I'll do my best to answer any questions you may have.
Features
- Multiple electron emission models
- Graphical interface for quick model fitting
- Python API for scripting and automation
Installation
For users
- Create a dedicated Python environment.
- Run
pip install EEmiLib
[!NOTE] If you are completely new to Python and these instructions are unclear, check this tutorial. In particular, you will want to:
- Install Python 3.12 or higher.
- Learn to use Python environments,
pipenvorvirtualenv.- Optionally, install a Python IDE such as Spyder or VSCode.
For developers
If you want to edit the source code:
- Clone the repository:
git clone git@github.com:AdrienPlacais/EEmiLib.git
[!WARNING] If you
Download ZIPthis repository (which can happen if you don't have access togit), installation will fail at step #3. A workaround is proposed here. This is a different library, but the same method applies.
- Create a dedicated Python environment.
- From EEmiLib folder:
pip install -e .[test] - Test that everything is working with
pytest -m "not implementation".
Usage
Graphical User Interface
To start the GUI, run following command in a bash:
eemilib-gui
A Module not found error generally means that the EEmiLib Python environment
is not activated.
Python API
import numpy as np
from eemilib.emission_data import DataMatrix
from eemilib.loader import PandasLoader
from eemilib.model import Vaughan
from eemilib.plotter import PandasPlotter
from eemilib import teey_cu
filepath = [teey_cu / "measured_TEEY_Cu_1_eroded.csv"]
# Object holding filepaths
data_matrix = DataMatrix()
# Indicate that this is TEEY file
data_matrix.set_files(
filepath, population="all", emission_data_type="Emission Yield"
)
data_matrix.load_data(PandasLoader())
# Plot experimental data
plotter = PandasPlotter()
axes = data_matrix.plot(
plotter, population="all", emission_data_type="Emission Yield"
)
# Select model and fit
model = Vaughan()
model.find_optimal_parameters(data_matrix)
# Plot fitted data
model.plot(
plotter,
population="all",
emission_data_type="Emission Yield",
energies=np.linspace(0, 1000, 1001),
angles=np.linspace(0, 60, 4),
axes=axes,
)
Roadmap/To-Do
-
Document abbreviations
-
GUI:
- Better handling of multiple
Plot dataandPlot modelbuttons push. - Display quantitative criteria to assess model quality (e.g., Nicolas Fil's criterion)
- Display derived quantities such as crossover energies, maximum TEEY, etc.
- Better handling of multiple
-
CI:
-
PyPIrelease. - Update installation instructions.
- ? Allow execution on online Docker, or make executable?
-
-
Exportbuttons- Tabulated model data.
- Model parameters value (makes sense along with an
Importbutton).
-
Fix error when not running from a git repo:
fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).`
-
API:
-
Model.display_parameters()method for nice printing. - Import/export model configuration with a
TOML.
-
-
If it proves useful:
- Handle experimental data with error bars
- Add control over interpolation of loaded experimental data
- Optional smoothing of measured data
- Different line styles/colors for different populations.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eemilib-0.1.2.tar.gz.
File metadata
- Download URL: eemilib-0.1.2.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
369bddb572bb2985b9f4c702469d2f1dce34c3ea58a2bcd40dad814cc93c4119
|
|
| MD5 |
7a8d2d1ac15d5487ab83f11d051d5fea
|
|
| BLAKE2b-256 |
bca34a00c07ff98355f73827d173865d76ed7f4ec008d04aac4b0b184ee3d9c8
|
Provenance
The following attestation bundles were made for eemilib-0.1.2.tar.gz:
Publisher:
release.yml on AdrienPlacais/EEmiLib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eemilib-0.1.2.tar.gz -
Subject digest:
369bddb572bb2985b9f4c702469d2f1dce34c3ea58a2bcd40dad814cc93c4119 - Sigstore transparency entry: 655761092
- Sigstore integration time:
-
Permalink:
AdrienPlacais/EEmiLib@2d413763f143815ec08ebab6951691d334940938 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/AdrienPlacais
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2d413763f143815ec08ebab6951691d334940938 -
Trigger Event:
push
-
Statement type:
File details
Details for the file eemilib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: eemilib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 121.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7588659dad892a69d268962d02c2d55e39ef7174cb4ee29b602beb710b48ab00
|
|
| MD5 |
44f69f2a8f4779b16687ea3724989f6b
|
|
| BLAKE2b-256 |
0c40a4b9536a6130032e5a0cc7907cdf5deacf56a17d1497ba3e1f8705e5f6c7
|
Provenance
The following attestation bundles were made for eemilib-0.1.2-py3-none-any.whl:
Publisher:
release.yml on AdrienPlacais/EEmiLib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
eemilib-0.1.2-py3-none-any.whl -
Subject digest:
7588659dad892a69d268962d02c2d55e39ef7174cb4ee29b602beb710b48ab00 - Sigstore transparency entry: 655761104
- Sigstore integration time:
-
Permalink:
AdrienPlacais/EEmiLib@2d413763f143815ec08ebab6951691d334940938 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/AdrienPlacais
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2d413763f143815ec08ebab6951691d334940938 -
Trigger Event:
push
-
Statement type: