Skip to main content

Welcome to pyEvalData

Documentation Status CI pypi codecov

This is a Python module to read and evaluate experimental data. It can handle raw data from different sources such as spec, hdf5, NeXus files which are common data formats at synchrotrons, FELs, as well as in a growing number of laboratories. The evaluation provides common functionalities such as binning, error calculation, and advanced data manipulation via algebraic expressions as well as pre- and post-data-filters. Furthermore, advanced wrapper functions allow for plotting and fitting sequences of one or multiple scans in dependence of an external parameter.

A minimal code example would look like this:

import pyEvalData as ped
# define your data source
spec = ped.io.Spec(file_name='data.spec')
# initialize the evaluation
ev = ped.Evaluation(spec)
# define the x- and y-data
ev.xcol = 'motor1'
ev.clist = ['ct1', 'ct2', 'ct1/ct2']
# create a plot for scans 1-3
ev.plot_scans([1, 2, 3])

Please follow the user guide and examples for your first steps with pyEvalData.

Features

  • reading of several pre-defined raw data formats
    • spec
    • hdf5
    • NeXus
    • user-defined text files
    • camera images (Dectris Pilatus, Princeton MTE, Greateyes, ...)
    • composite sources
  • easy implementation of new raw-data formats using an interface class
  • common methods for plotting and fitting of experimental data, including:
    • data binning
    • error calculation
    • data manipulation via algebraic expressions
    • common data pre- and post-filters

Installation

You can either install directly from pypi.org using the command

$ pip install pyEvalData

or if you want to work on the latest develop release you can clone pyEvalData from the main git repository:

$ git clone https://github.com/dschick/pyEvalData.git pyEvalData

To work in editable mode (source is only linked but not copied to the python site-packages), just do:

$ pip install -e ./pyEvalData

Or to do a normal install with

$ pip install ./pyEvalData

Optionally, you can also let pip install directly from the repository:

$ pip install git+https://github.com/dschick/pyEvalData.git

You can have the following optional installations to enable unit tests, as well as building the documentation:

$ pip install pyEvalData[testing]
$ pip install pyEvalData[documentation]

Contribute & Support

If you are having issues please let us know via the issue tracker.

You can contribute to the project via pull-requests following the GitHub flow concept.

License

The project is licensed under the MIT license.

Metadata

Release files for pyEvalData 1.6.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 pyEvalData 1.6.0
File Size Uploaded
pyEvalData-1.6.0.tar.gz 27.4 kB Details

Built distribution (wheel)

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

Total release size: 64.2 kB

Release files / pyEvalData-1.6.0.tar.gz

Download URL pyEvalData-1.6.0.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15ef1714d2ed61ddffcc868ac1e63891bbed28ac8b919140c6f5b9e8e2f995b7
BLAKE2b-256 checksum
How to use checksums
0e20f83718467ee200a1c142a59b3e06147de47027a39c73b1075f6d416e2334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release files / pyEvalData-1.6.0-py3-none-any.whl

Download URL pyEvalData-1.6.0-py3-none-any.whl
Size 36.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a160037367c6cdc3de1ecc93afe670dae148b41773b29d30b60079de2f66ed25
BLAKE2b-256 checksum
How to use checksums
f4702d3f9d947c484f6f3ec8395ae0cfbd2ee7f432194960a4a1213fe45f7d40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release history Release notifications | RSS feed

This release

1.6.0 This release

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.1.0

2 release files

1.0.0

2 release files

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