Skip to main content

Electron SPectro-Microscopy Python Library

Project description

espm: The Electron Spectro-Microscopy Python Library

This library contains algorithms to perform non-negative matrix factorization with diverse regularisation (e.g. Laplacian or L1) and contraints (e.g. simplex).

It is specialized for Electron Microscopy applications. It contains code to create artificial Energy dispersive X-ray spectroscopy (EDXS) data and to perform hyperspectral unmixing on EDXS spectrum images.

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

Generate the synthetic dataset. Run the script::

$ python experiments/generate_synthetic_dataset.py

Documentation

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

You can get started with the following notebooks:

TODOs

Here is a list of things that we need to do before the version 0.2.0, which will be the first official release of the library. The code is already available on github at the following address:
https://github.com/adriente/espm.git A draft of the documentation is available at: https://espm.readthedocs.io/en/latest/

  • Update the line 40 of doc/introduction/index.rst (@Adrien)
  • Make some doc for the dataset module (just the minimum) (@Adrien)
  • Toy dataset: create model class, change outputs, adapts function (@Nati)
  • Separate the spectral and spacial parts
    • Move generate_EDXS_phases to models
    • Create a modules for weights
  • Clarify the code for the estimator: remove the L2 loss (@Nati)
  • Add the general problem that we solve in the doc (@Nati)
  • Update the ML notebook with more explanations (@Nati)
  • Check that the doc is somehow understanable and sufficiently complete (@Sebastian)

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-0.1.2.tar.gz (821.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

espm-0.1.2-py2.py3-none-any.whl (242.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for espm-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ba475b0a6f6a2ac02914b0d4409c03ba23c802336cf0021443e0d67e22754330
MD5 66e3ea0d596efce6abc011a9326f8874
BLAKE2b-256 40a259e141f36ac5b92bbbf85097a13ea37fb3eab44d8c58e43fc1db56874ff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: espm-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 242.7 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-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3a0c04510858e8d148bd413085d9bc9e80066b6366d35b64cb61e6a5e52a349
MD5 6d26ae05f095daab311314b9a5723057
BLAKE2b-256 7e0e9830e74b2ccca68926012a1772865632f0a690f54516f9dcd3154cdb1ce9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page