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:
tests
These are typical unit tests, that assert that functions return the right shape, beam parameters return the right values, etc. Run withpytest
.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
Release history Release notifications | RSS feed
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.6.0.tar.gz
(37.1 kB
view details)
Built Distribution
ltempy-1.6.0-py3-none-any.whl
(40.4 kB
view details)
File details
Details for the file ltempy-1.6.0.tar.gz
.
File metadata
- Download URL: ltempy-1.6.0.tar.gz
- Upload date:
- Size: 37.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15e878b3377412547cf341fc745b3f6e91e7a9129e647577109867b8e48d11f5 |
|
MD5 | f8158ae0cc09a3db57cf656fe4369e2a |
|
BLAKE2b-256 | 3d90cd3cdb6bc798213b3065e53c29bf53e54c1c17d091000dbac8bda0185ebb |
File details
Details for the file ltempy-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: ltempy-1.6.0-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41f4cd26de0164b1206ae1036bbcef07cd37f6661cb38305011bfa11f8b97bc9 |
|
MD5 | 3311cd8309162301d6ee6d80433310fa |
|
BLAKE2b-256 | f14b692dc14093cc4e92d4e4f6681485111ee14e8a2ed6401eb4d7d1d2d88c90 |