Skip to main content

License: GPL v3 DOI

pyEELSMODEL

pyEELSMODEL is a electron energy loss spectroscopy software based on the former c++ software. This software uses the model-based approach to quantify EEL spectra.

See https://pyeelsmodel.readthedocs.io/ for more information.

Installing

The easiest way to install pyEELSMODEL is through the release hosted on PyPI:

pip install pyEELSMODEL

or by first cloning this repository to your computer via:

git clone https://github.com/joverbee/pyEELSMODEL.git

and then navigate to the pyEELMODEL directory and type following into the command line:

pip install .

If you want to create an editable install one needs to do following:

pip install -e .

When they are first needed, the generalized oscillator strengths (GOS) tables will be automatically imported. The GOS tables are necessary to perform EEL quantification since they are used to calculate the atomic cross sections. Two different GOS tables can be used for quantification:

  1. The GOS calculated by Zhang Z. et al. which can be found at doi:10.5281/zenodo.7729585.
  2. The GOS calculated by Segger L. et al. which can be found at doi:10.5281/zenodo.7645765.

The GOS tables can also be manually imported. To know in which directory your pyEELSMODEL package is installed, following command can be run in a python console:

import pyEELSMODEL
print(pyEELSMODEL.__path__)

This information is necessary for the proper use of the GOS tables.

GOS tables from Zhang Z.

Following steps explain how to manually setup the GOS array of Zhang Z.

  1. Download the Dirac_GOS_database.zip file
  2. Unzip the file
  3. Copy the *.hdf5 files in the folder to .pyEELSMODEL\database\Zhang folder which is found in the pyEELSMODEL folder

GOS tables from Segger L.

Following steps explain how to manually setup the GOS array of Segger L.

  1. Download the Segger_Guzzinati_Kohl_1.5.0.gosh (depends on version) file
  2. Copy the .gosh file to .pyEELSMODEL\database\Segger_Guzzinati_Kohl folder which is found in the pyEELSMODEL folder

The GOS tables are used in the quantification workflows so they are necessary to run the example notebooks, but they should be automatically installed the first time they are needed.

Using

import pyEELSMODEL.api as em
import numpy as np

size=1024
offset = 100 #[eV]
dispersion = 0.5 #[eV]

specshape = em.Spectrumshape(dispersion, offset, size)
data_array = np.random.random(size)

s = em.Spectrum(specshape, data=data_array)
s.plot() 

For more examples on how to use pyEELSMODEL, check the ./examples folder.
This folder has many examples on how to use the pyEELSMODEL package.

License

The project is licensed under the GPL-3.0 license

Metadata

Release files for pyEELSMODEL 1.0.7

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

Source distribution (sdist)

Source distribution for pyEELSMODEL 1.0.7
File Size Uploaded
pyeelsmodel-1.0.7.tar.gz 246.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyEELSMODEL 1.0.7
File Interpreter ABI Platform
pyeelsmodel-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 546.5 kB

Release files / pyeelsmodel-1.0.7.tar.gz

Download URL pyeelsmodel-1.0.7.tar.gz
Size 246.7 kB
Tags Source
SHA-256 checksum
How to use checksums
96a4ece92cbadcf2a67655f3108d25eff75c36dfcc08bc2339e3ee4e53c16401
BLAKE2b-256 checksum
How to use checksums
4f8fb88d7082f0d889142754f20810f64efac3436678a312b9e10aa8524b4e74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 10, 2026.

Transparency log

Release files / pyeelsmodel-1.0.7-py3-none-any.whl

Download URL pyeelsmodel-1.0.7-py3-none-any.whl
Size 299.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f7ce5174cc4189fde7b44fcdf9647c05815911e838691fa1d4a6371e1d11cb6
BLAKE2b-256 checksum
How to use checksums
4c279ea836a11d147ecab9a3396722e255d3b11eb9e08b226611a09f570a60aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.9

2 release files

1.0.8

2 release files

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.0.1

2 release files

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