Metadata-Version: 2.1
Name: instamatic
Version: 1.3.2
Summary: Python program for automated electron diffraction data collection
Home-page: http://github.com/stefsmeets/instamatic
License: GPL-3.0-only
Keywords: electron-crystallography,electron-microscopy,electron-diffraction,serial-crystallography,3D-electron-diffraction,micro-ed,data-collection,automation
Author: Stef Smeets
Author-email: s.smeets@tudelft.nl
Maintainer: Stef Smeets
Maintainer-email: s.smeets@tudelft.nl
Requires-Python: >=3.6.1
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: comtypes (>=1.1.7)
Requires-Dist: h5py (>=2.10.0)
Requires-Dist: ipython (>=7.11.1)
Requires-Dist: lmfit (>=1.0.0)
Requires-Dist: matplotlib (>=3.1.2)
Requires-Dist: mrcfile (>=1.1.2)
Requires-Dist: numpy (>=1.17.3)
Requires-Dist: pandas (>=0.25.3)
Requires-Dist: pillow (>=7.0.0)
Requires-Dist: pyserialem (>=0.1.0,<0.2.0)
Requires-Dist: pywinauto (>=0.6.8)
Requires-Dist: pyyaml (>=5.3)
Requires-Dist: scikit-image (>=0.16.2)
Requires-Dist: scipy (>=1.3.2)
Requires-Dist: tifffile (>=2019.7.26.2)
Requires-Dist: tqdm (>=4.41.1)
Requires-Dist: virtualbox (>=2.0.0)
Project-URL: Bug Reports, https://github.com/stefsmeets/instamatic/issues
Project-URL: Documentation, http://github.com/stefsmeets/instamatic
Project-URL: Repository, http://github.com/stefsmeets/instamatic
Description-Content-Type: text/markdown

![build](https://github.com/stefsmeets/instamatic/workflows/build/badge.svg)
![PyPI](https://img.shields.io/pypi/v/instamatic.svg?style=flat)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1090388.svg)](https://doi.org/10.5281/zenodo.1090388)

# 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 gatan/timepix/tvips cameras. Routines have been implemented for collecting serial electron diffraction (serialED), continuous rotation electron diffraction (cRED), and stepwise rotation electron diffraction (RED) data.

Instamatic is distributed as a portable stand-alone installation that includes all the needed libraries from: https://github.com/stefsmeets/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 (including live-view GUI)
- Gatan cameras through DM plugin
- TVIPS cameras through EMMENU4 API

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

A DigitalMicrograph script for collecting cRED data on a OneView camera (or any other Gatan camera) can be found at [dmscript](https://github.com/stefsmeets/InsteaDMatic).

## Installation

    pip install instamatic

Alternatively, download the portable installation with all libraries/dependencies included: https://github.com/stefsmeets/instamatic/releases/latest. Extract the archive, and open a terminal by double-clicking `start_Cmder.exe`.

## Documentation

See [the documentation](docs) for how to set up and use Instamatic.

- [TEMController](docs/tem_api.md)
- [Config](docs/config.md)
- [Reading and writing image data](docs/formats.md)
- [Setting up instamatic](docs/setup.md)
- [Programs included](docs/programs.md)
- [GUI and Module system](docs/gui.md)

Use `pydoc` to access the full API reference: `pydoc -b instamatic`

## Reference

If you find this software useful, please consider citing one of the references below and/or refer to the source code in your publications:

- S. Smeets, B. Wang, M.O. Cichocka, J. Ångström, and W. Wan, (2018, December 7). Instamatic (Version 1.0.0). Zenodo. http://doi.org/10.5281/zenodo.2026774

Some of the methods implemented in Instamatic are described in:

- B. Wang, X. Zou, and S. Smeets, [Automated serial rotation electron diffraction combined with cluster analysis: an efficient multi-crystal workflow for structure determination](https://doi.org/10.1107/S2052252519007681), IUCrJ (2019). 6, 1-14

- M.O. Cichocka, J. Ångström, B. Wang, X. Zou, and S. Smeets, [High-throughput continuous rotation electron diffraction data acquisition via software automation](http://dx.doi.org/10.1107/S1600576718015145), J. Appl. Cryst. (2018). 51, 1652–1661

- S. Smeets, X. Zou, and W. Wan, [Serial electron crystallography for structure determination and phase analysis of nanocrystalline materials](http://dx.doi.org/10.1107/S1600576718009500), J. Appl. Cryst. (2018). 51, 1262–1273

