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
For developers
If you want to edit the source code:
- Clone the repository:
git clone git@github.com:AdrienPlacais/EEmiLib.git - 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
A typical script would look like:
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
data_matrix = DataMatrix()
data_matrix.set_files(
filepath="path/to/a/TEEY/file.csv",
population="all",
data_type="Emission Yield",
)
loader = PandasLoader()
data_matrix.load_data(loader)
model = Vaughan()
model.find_optimal_parameters(data_matrix)
plotter = PandasPlotter()
axes = data_matrix.plot(
plotter=plotter, population="all", data_type="Emission Yield"
)
model.plot(
plotter=plotter,
population="all",
data_type="Emission Yield",
energies=np.linspace(0, 1000, 1001),
angles=np.linspace(0, 60, 4),
axes=axes,
)
Complete examples are available in the documentation.
Roadmap/To-Do
-
GUI:
- Plot:
- Let user choose
group_by_peande_pesfor"Emission Energy"plots. - Plot window should be completely separated.
- Changing parameter values should update the plot.
- Let user choose
- Let user load and plot files that are not needed for current
Model, so they can compareModeldata with tabulated data easily. -
Parameters:- The bounds set in GUI are not taken into account.
- The values set in GUI are not taken into account.
- The
lockcheckbox is not taken into account.
- Selecting
FurmanPivitakes too long!
- Plot:
-
CI:
- Allow execution on online Docker ?
-
Exportbuttons- Tabulated model data.
- First draft in
scripts/export_modelled.py
- First draft in
- Model parameters value (makes sense along with an
Importbutton).
- Tabulated model data.
-
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:
- Import/export model configuration with a
TOML. - Should every
Modelbe fitted onallpopulation? - Locking should remove optimization variables, rather than setting tiny bounds.
- Energy distributions handling is inconsistent, in particular wrt the norm.
- Make loading emission energy plots more robust.
- Import/export model configuration with a
-
If it proves useful:
- Handle experimental data with error bars
- Add control over interpolation of loaded experimental data
- Optional smoothing of measured data
- Ready-to-use interface for PIC codes.
Metadata
Release files for EEmiLib 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eemilib-0.2.2.tar.gz | 2.1 MB | With provenance | Details for eemilib-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eemilib-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for eemilib-0.2.2-py3-none-any.whl |
Total release size: 2.5 MB
Release files / eemilib-0.2.2.tar.gz
| Download URL | eemilib-0.2.2.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d174a2abcfc7873846b83a20f01f57c18173178e6c664445e8089a0f564f422
|
|
BLAKE2b-256 checksum How to use checksums |
c422d1854bc2e2eeff8ee76aa3a564f4744ddefd08cdb58008f2067c98152017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / eemilib-0.2.2-py3-none-any.whl
| Download URL | eemilib-0.2.2-py3-none-any.whl |
|---|---|
| Size | 445.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e6143a6cf5c11080b075611469a07df594bfa7a2589673734ae41da4e541344
|
|
BLAKE2b-256 checksum How to use checksums |
4ed7802087e3cbda4d3ad35702286eac298da787f8ac3fa8f854d7b16a96a837
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for EEmiLib 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eemilib-0.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.