Skip to main content

build docs PyPI - Python Version PyPI DOI

Instamatic banner

Instamatic

Instamatic is a Python program that is being developed with the aim to automate the collection of electron diffraction data. At the core is a Python library for transmission electron microscope experimental control with bindings for the JEOL/FEI microscopes and interfaces to the ASI/TVIPS/Gatan cameras. Routines have been implemented for collecting serial electron diffraction (serialED), continuous rotation electron diffraction (cRED, aka 3D-ED / microED), and stepwise rotation electron diffraction (RED) data. For streaming cameras, instamatic includes a live-view GUI.

Instamatic is distributed via pypi and https://github.com/instamatic-dev/instamatic/releases. However, the most up-to-date version of the code (including bugs!) is available from this repository.

Electron microscopes supported:

  • JEOL microscopes with the TEMCOM library
  • FEI microscopes via the scripting interface

Cameras supported:

  • ASI Timepix
  • ASI CheeTah through serval-toolkit library
  • DECTRIS cameras through SIMPLON API
  • TVIPS cameras through EMMENU4 API
  • Quantum Detectors MerlinEM
  • Gatan cameras through FEI scripting interface
  • (Gatan cameras through DM plugin [1])

Instamatic has been developed on a JEOL-2100 with a Timepix camera, and a JEOL-1400 and JEOL-3200 with TVIPS cameras (XF416/F416).

See instamatic-dev/instamatic-tecnai-server for a TEM interface to control a FEI Tecnai or FEI Titan TEM and associated cameras on Windows XP/Python 3.4 via instamatic.

[1]: Support for Gatan cameras is somewhat underdeveloped. As an alternative, a DigitalMicrograph script for collecting cRED data on a OneView camera (or any other Gatan camera) can be found here.

Installation

If you use conda, create a new environment with a supported version of python. For maximum convenience, install basic libraries as well as pycifrw from conda forge:

conda create -n instamatic python=3.12
conda activate instamatic
conda install numpy matplotlib pycifrw -c conda-forge

Install using pip, works with python versions 3.9 or newer:

pip install instamatic

Please mind that one of the indirect Instamatic dependencies, PyCifRW, requires Microsoft Visual C++ 14.0 or greater to compile properly. For this reason, when installing instamatic directly from pip, these build tools must be available on the system to succeed. Installing precompiled pycifrw from conda-forge circumvents this issue.

OS requirement

The package requires Windows 7 or higher. It has been mainly developed and tested under Windows 7 and higher. Client and camera server installation were shown to successfully run on Unix-based systems but may require additional care. Microscope server installations require Windows OS for communication with the TEM.

Package dependencies

Check pypoject.toml for the full dependency list and versions.

Documentation

See the documentation for how to set up and use Instamatic.

Reference

If you found Instamatic useful, please consider citing it or one of the references below.

Each software release is archived on Zenodo, which provides a DOI for the project and each release. The project DOI 10.5281/zenodo.1090388 will always resolve to the latest archive, which contains all the information needed to cite the release.

Alternatively, some of the methods implemented in Instamatic are described in:

Maintenance

Metadata

Release files for instamatic 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for instamatic 2.3.0
File Size Uploaded Provenance Actions
instamatic-2.3.0.tar.gz 3.4 MB With provenance Details for instamatic-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for instamatic 2.3.0
File Interpreter ABI Platform Actions
instamatic-2.3.0-py3-none-any.whl Python 3 none any Details for instamatic-2.3.0-py3-none-any.whl

Total release size: 6.6 MB

Release files / instamatic-2.3.0.tar.gz

Download URL instamatic-2.3.0.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
3eb54cabe89ed2847544f766fd4fa9eaec5907a111fb4760855fd10ad3ecaa17
BLAKE2b-256 checksum
How to use checksums
413bca6e4c3e7d6f8ec78734f8e462182ae7c77562a7db7ac9230f489cdc4e73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / instamatic-2.3.0-py3-none-any.whl

Download URL instamatic-2.3.0-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b824fc0c57f661199bfd2d059bac4e50d2b9c58f06ecd97aceb2b40dc08bc718
BLAKE2b-256 checksum
How to use checksums
27559215705aed9c88e71fc364bcee11679f81c2ff7e79e54e2507a20fa4c160
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for instamatic 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for instamatic-2.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page