You're reading an old version of this documentation. For up-to-date information, please have a look at v0.5.

cwEPR documentation

Welcome! This is the documentation for cwEPR, a Python package for processing and analysis of continuous-wave electron paramagnetic resonance (cw-EPR) spectra based on the ASpecD framework. For general information see its Homepage. Due to the inheritance from the ASpecD framework, all data generated with the cwepr package are completely reproducible and have a complete history.

What is even better: Actual data processing and analysis no longer requires programming skills, but is as simple as writing a text file summarising all the steps you want to have been performed on your dataset(s) in an organised way. Curious? Have a look at the following example:

 1default_package: cwepr
 4  - /path/to/first/dataset
 5  - /path/to/second/dataset
 8  - kind: processing
 9    type: FrequencyCorrection
10    properties:
11      parameters:
12        frequency: 9.8
13  - kind: processing
14    type: BaselineCorrection
15    properties:
16      parameters:
17        order: 0
18  - kind: singleplot
19    type: SinglePlotter1D
20    properties:
21      filename:
22        - first-dataset.pdf
23        - second-dataset.pdf

Interested in more real-live examples? Check out the use cases section.


A list of features:

  • Fully reproducible processing of cw-EPR data

  • Import of EPR data from diverse sources (Bruker ESP, EMX, Elexsys; Magnettech)

  • Generic plotting capabilities, easily extendable

  • Report generation using pre-defined templates

  • Recipe-driven data analysis, allowing tasks to be performed fully unattended in the background

And to make it even more convenient for users and future-proof:

  • Open source project written in Python (>= 3.5)

  • Extensive user and API documentation


The cwEPR package is currently under active development and still considered in Beta development state. Therefore, expect frequent changes in features and public APIs that may break your own code. Nevertheless, feedback as well as feature requests are highly welcome.

How to cite

cwepr is free software. However, if you use cwepr for your own research, please cite it appropriately:

Mirjam Schröder, Till Biskup. cwepr (2021). doi:10.5281/zenodo.4896687

To make things easier, cwepr has a DOI provided by Zenodo, and you may click on the badge below to directly access the record associated with it. Note that this DOI refers to the package as such and always forwards to the most current version.

Where to start

Users new to the cwEPR package should probably start at the beginning, those familiar with its underlying concepts may jump straight to the section explaining frequent use cases.

Those interested in a hands-on primer on cw-EPR spectroscopy, covering necessary information for how to obtain usable data with your cw-EPR spectrometer, may have a look at the cw-EPR primer.

The API documentation is the definite source of information for developers, besides having a look at the source code.


To install the cwepr package on your computer (sensibly within a Python virtual environment), open a terminal (activate your virtual environment), and type in the following:

pip install cwepr

Have a look at the more detailed installation instructions as well.

Indices and tables


This program is free software: you can redistribute it and/or modify it under the terms of the BSD License. However, if you use the cwepr package for your own research, please cite it appropriately. See How to cite for details.