This is the home repository for the quantitative electron microscopy (quantem) data analysis toolkit.
The package is available on the Python Package Index (PyPi), as quantem.
You can install it using pip install quantem.
We use uv to manage the package.
Getting started:
- install uv
git clonethe repo andcdinto the directory- run
uv syncto install all the dependencies in an editable environment
Dependency management:
- use
uv add package_nameto add dependencies - use
uv remove package_nameto remove dependencies - use
uv add dev_package_name --devto add a dev dependency, i.e. that devs need (e.g. pytest) but you don't want shipped to users - use
uv pip install testing_package_nameto install a package you think you might need, but don't want to add to dependencies just yet
Running python/scripts in environment:
- use
uv run python,uv run jupyterlabetc. to automatically activate the environment and run your command - alternatively use
source .venv/bin/activateto explicitly activate environment and usepython,jupyterlabetc. as usual- note that if you're using an IDE like VS Code, it probably activates the environment automatically
quantem is free and open source software, distributed under the MIT License.