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 the simulation and analysis of scanning transmission electron microscopy (STEM) hyperspectral data analysis. Currently it only supports energy dispersive X-ray spectroscopy (EDXS) data but we will try to extend it to electron energy loss spectroscopy (EELS) data in the future. 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]" 

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.0.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

espm-1.0.0-py2.py3-none-any.whl (265.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for espm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4df8b2e1c436e5ae24175c0625908a73942578fe228ee4accb2f811b7d50dfd5
MD5 e7a47cba28ac626460bb28e39a6c825e
BLAKE2b-256 eb0b0ee7ec70d84bc111f2fd105825bd542750a6f73cbad9bbfb98895339cfd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: espm-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 265.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for espm-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24fb4ed8e098fcfa6dcfd15c2be0eea743b94036f67b72fd98792f6e33c2cd29
MD5 3862e3370634f2fe0e28d8376d2a544e
BLAKE2b-256 4e18710c7f8a630268351eb08ffb42f588965b77bacdb1df5f110fd8986606bf

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