Skip to content


Repository files navigation


Pre-processing software for serial electron diffraction (SerialED) data. See for example results.

Diffractem is intended for usage within Jupyter notebooks - get a set of examples here:


diffractem is tailored to pre-processing SerialED data primarily for crystallographic analysis using CrystFEL, version 0.10.0 or higher: To make most of diffractem's functionality, if you do not have it already, please download and install CrystFEL following the installation instructions given on its homepage. During the build process of CrystFEL using meson, the pinkIndexer component will automatically be downloaded and installed.

Create conda enivronment

We strongly suggest to use the Anaconda3 Python distribution/package manager, and create a dedicated environment within it for diffractem. If you do not have Anaconda installed, it is sufficient to obtain the minimal Miniconda of the conda package manager at

Once installed, please create a new anaconda environment for diffractem, and activate it:

conda create -n diffractem -c conda-forge python=3.10 numpy scipy pandas dask distributed jupyterlab ipywidgets ipympl tifffile h5py
conda activate diffractem

Install diffractem

Finally install diffractem itself, either from PyPi:

pip install diffractem

or, if you want to play/develop a bit more and stay up-to-date, you can clone this git repository and install diffractem in developer mode:

git clone
cd diffractem
pip install -e .

Now you should be ready to go! To get started, why don't you download the example notebooks:

git clone

And get example raw data at MPDL Edmond:

And when you're ready to go: just make your own branches of the notebooks for your own projects, and have fun!

diffractem, (C) 2019-2022 Robert Bücker,

peakfinder8, (C) 2014-2019 Deutsches Elektronen-Synchrotron DESY