Skip to main content

Python module to evaluate experimental data

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyEvalData-1.6.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

pyEvalData-1.6.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file pyEvalData-1.6.0.tar.gz.

File metadata

  • Download URL: pyEvalData-1.6.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pyEvalData-1.6.0.tar.gz
Algorithm Hash digest
SHA256 15ef1714d2ed61ddffcc868ac1e63891bbed28ac8b919140c6f5b9e8e2f995b7
MD5 a1a08e4c60d2f3cf0de6725f64cce4c9
BLAKE2b-256 0e20f83718467ee200a1c142a59b3e06147de47027a39c73b1075f6d416e2334

See more details on using hashes here.

File details

Details for the file pyEvalData-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: pyEvalData-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for pyEvalData-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a160037367c6cdc3de1ecc93afe670dae148b41773b29d30b60079de2f66ed25
MD5 d60a6bc2f735609bfc78196084b19f59
BLAKE2b-256 f4702d3f9d947c484f6f3ec8395ae0cfbd2ee7f432194960a4a1213fe45f7d40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page