Skip to main content

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

  1. Create a dedicated Python environment.
  2. Run
pip install EEmiLib

For developers

If you want to edit the source code:

  1. Clone the repository: git clone git@github.com:AdrienPlacais/EEmiLib.git
  2. Create a dedicated Python environment.
  3. From EEmiLib folder: pip install -e .[test]
  4. 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.

GUI animation

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_pe and e_pes for "Emission Energy" plots.
      • Plot window should be completely separated.
      • Changing parameter values should update the plot.
    • Let user load and plot files that are not needed for current Model, so they can compare Model data with tabulated data easily.
    • Parameters :
      • Unlocking should update the displayed bounds.
    • Selecting FurmanPivi takes too long!
  • CI:

    • Allow execution on online Docker ?
  • Export buttons

    • Tabulated model data.
    • Model parameters value (makes sense along with an Import button).
  • 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 Model be fitted on all population?
    • Locking should remove optimization variables, rather than setting tiny bounds.
    • Energy distributions handling is inconsistent, in particular wrt the norm.
  • 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for EEmiLib 0.2.1
File Size Uploaded Provenance Actions
eemilib-0.2.1.tar.gz 2.1 MB With provenance Details for eemilib-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for EEmiLib 0.2.1
File Interpreter ABI Platform Actions
eemilib-0.2.1-py3-none-any.whl Python 3 none any Details for eemilib-0.2.1-py3-none-any.whl

Total release size: 2.5 MB

Release files / eemilib-0.2.1.tar.gz

Download URL eemilib-0.2.1.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d6adf869bff0b6811275dc327e444be9d5c55f35335c9d0b80ceaad130ffabd4
BLAKE2b-256 checksum
How to use checksums
54858defb67a53b048fba3ae85072b060e87f59252537505eb016b26b4af7d00
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 Oct 21, 2026.

Transparency log

Release files / eemilib-0.2.1-py3-none-any.whl

Download URL eemilib-0.2.1-py3-none-any.whl
Size 414.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
457362b1784674bfe4fc24de659bf424958757a6cdb650634d3818dd462d773e
BLAKE2b-256 checksum
How to use checksums
c6d5ab94c703afa312db1f90a76b50ae3b775c3139dde9f067df33cb9f25aa02
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 Oct 21, 2026.

Transparency log

Security for EEmiLib 0.2.1

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.

Select from 2 files

Attestation for eemilib-0.2.1.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 Oct 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page