Skip to main content

Utilities for Lorentz TEM data analysis and simulation.

Project description

ltempy

ltempy is a set of tools for Lorentz TEM data analysis, simulation, and presentation.

Features

  • Single Image Transport of Intensity Equation (SITIE) reconstruction
  • simulations - calculations of phase, B, A, image
  • basic image processing - high_pass, low_pass, clipping
  • a matplotlib.pyplot wrapper tailored to presenting induction maps and Lorentz data
  • an implementation of the CIELAB colorspace
  • module-wide unit scaling (i.e., working in nm rather than m)

Installation

python -m pip install ltempy

Documentation

Documentation is available at https://mcmorranlab.github.io/ltempy/.

Tests

Tests are split into two subdirectories:

  1. tests These are typical unit tests, that assert that functions return the right shape, beam parameters return the right values, etc. Run with pytest.
  2. devtests These are tests of the actual functionality, that require a trained eye to evaluate. Run as normal .py scripts.

The rationale for devtests is that this package is math-heavy, so it's highly possible for the code to run fine, but be wrong. The easiest way to test for this is to check base cases where the developer knows what to look for.

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

ltempy-1.1.0.tar.gz (32.2 kB view hashes)

Uploaded Source

Built Distribution

ltempy-1.1.0-py3-none-any.whl (37.5 kB view hashes)

Uploaded Python 3

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