Skip to main content

Electron SPectro-Microscopy Python Library

Project description

espm: The Electron Spectro-Microscopy Python Library

.. image:: https://readthedocs.org/projects/espm/badge/?version=latest :target: https://espm.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

The espm package is designed for simulation and physics-guided NMF decomposition of hyperspectral data. Even though the package is mainly centered around electron spectro-microscopy applications, custom models can be implemented for other type of data. Currently espm supports the simulation and analysis of simultaneous scanning transmission electron microscopy and energy dispersive X-ray spectroscopy (STEM / EDXS). In future implementation, we will try to extend the package to support electron energy loss spectroscopy (EELS).

The main components of the package are:

  • The simulation of STEM-EDXS datasets using :mod:espm.datasets which combines :mod:espm.weights for the simulation of spatial distributions and :mod:èspm.models for the simulation of spectra.
  • The hyperspectral unmixing of STEM-EDXS spectrum images using :mod:espm.estimators. This module contains algorithms to perform non-negative matrix factorization with diverse regularisation (e.g. Laplacian or L1) and contraints (e.g. simplex).
  • The :mod:espm.models module can also be used to perform a physics-guided decomposition of STEM-EDXS datasets.

Installation

You can install this package from PyPi using::

$ pip install espm

If you want to develop, please use the option::

$ git clone https://github.com/adriente/espm.git
$ cd espm
$ pip install cython
$ pip install -e ."[dev]" 

If you get issues regarding pandoc when using make doc, you can install it using::

$ sudo apt-get install pandoc

or

$ conda install pandoc

Getting started

Try the api.ipynb notebook in the notebooks folder.

Documentation

The documentation is available at https://espm.readthedocs.io/en/latest/

You can get started with the following notebooks:

CITING

If you use this library, please cite the following paper::

@article{teurtrie2023espm,
title={espm: A Python library for the simulation of STEM-EDXS datasets},
author={Teurtrie, Adrien and Perraudin, Nathana{\"e}l and Holvoet, Thomas and Chen, Hui and Alexander, Duncan TL and Obozinski, Guillaume and H{\'e}bert, C{\'e}cile},
journal={Ultramicroscopy},
pages={113719},
year={2023},
publisher={Elsevier}
}

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

espm-1.1.1.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

espm-1.1.1-py2.py3-none-any.whl (272.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file espm-1.1.1.tar.gz.

File metadata

  • Download URL: espm-1.1.1.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for espm-1.1.1.tar.gz
Algorithm Hash digest
SHA256 c5ec58b68de021e5c99327330309f795843e8d8723b7de69bcfc18849b734236
MD5 d9c4c1e5b9d8b2a16260e58a2b3edf66
BLAKE2b-256 600042ca974c1ed229f69e04c8985a31dd38753e3fbdf0a584ea56f8d419c8e7

See more details on using hashes here.

File details

Details for the file espm-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: espm-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 272.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for espm-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 083375b19101e4f09fe6f38a0a9d1996609559247b16aed88dc4bca8f9a24e91
MD5 e368d323adf2f9c61010db3ada9fd820
BLAKE2b-256 22087df250d4ad97a973c29e78527e525366842512b80f6fc7ba04f6074695a1

See more details on using hashes here.

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