Skip to main content

Single Event Data Frame Processor: Backend to handle photoelectron resolved datastreams

Project description

Documentation Status Ruff Coverage Status

sed-processor is a backend to process and bin multidimensional single-event datastreams, with the intended primary use case in multidimensional photoelectron spectroscopy using time-of-flight instruments.

It builds on Dask dataframes, where each column represents a multidimensional "coordinate" such as position, time-of-flight, pump-probe delay etc., and each entry represents one electron. The SedProcessor class provides a single user entry point, and provides functions for handling various workflows for coordinate transformation, e.g. corrections and calibrations.

Furthermore, "sed-processor" provides fast and parallelized binning routines to compute multidimensional histograms from the processed dataframes in a delayed fashion, thus reducing requirements on cpu power and memory consumption.

Finally, in contains several export routines, including export into the NeXus format with rich and standardized metadata annotation.

Installation

Prerequisites

  • Python 3.8+
  • pip

Steps

  • Create a new virtual environment using either venv, pyenv, conda, etc. See below for an example.
python -m venv .sed-venv
  • Activate your environment:
# On macOS/Linux
source .sed-venv/bin/activate

# On Windows
.sed-venv\Scripts\activate
  • Install sed, distributed as sed-processor on PyPI:
pip install sed-processor[all]
  • If you intend to work with Jupyter notebooks, it is helpful to install a Jupyter kernel for your environment. This can be done, once your environment is activated, by typing:
python -m ipykernel install --user --name=sed_kernel
  • If you do not use Jupyter Notebook or Jupyter Lab, you can skip the installing those dependencies
pip install sed-processor

Documentation

Comprehensive documentation including several workflow examples can be found here: https://opencompes.github.io/docs/sed/latest/

Contributing

Users are welcome to contribute to the development of sed-processor. Information how to contribute, including how to install developer versions can be found in the documentation

We would like to thank our contributors!

Contributors

License

sed-processor is licenced under the MIT license

Copyright (c) 2022-2024 OpenCOMPES

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

sed_processor-0.3.0.tar.gz (131.2 kB view details)

Uploaded Source

Built Distribution

sed_processor-0.3.0-py3-none-any.whl (147.3 kB view details)

Uploaded Python 3

File details

Details for the file sed_processor-0.3.0.tar.gz.

File metadata

  • Download URL: sed_processor-0.3.0.tar.gz
  • Upload date:
  • Size: 131.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sed_processor-0.3.0.tar.gz
Algorithm Hash digest
SHA256 712e8127ec5fccaef310670fc0d9fa7435df530eb00a361f6d4011ceb65f066e
MD5 f07dda29746509620823a2380a329ce2
BLAKE2b-256 a612cac8195e24eeaa81fc246df23f8885e2a249320243e35e3eaab76ae76d8c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sed_processor-0.3.0.tar.gz:

Publisher: release.yml on OpenCOMPES/sed

Attestations:

File details

Details for the file sed_processor-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sed_processor-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cb1bc83cdfdbc6b2e276ef5876473f96fb91e9ccc0fa9c8ed96cb0e4890eac1
MD5 77c72cf0d7484d36b704ea69a2017b54
BLAKE2b-256 7381596608e4c4504f64cb6cc3e1e694c9477d0ee1cc88ce819238596de0641e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sed_processor-0.3.0-py3-none-any.whl:

Publisher: release.yml on OpenCOMPES/sed

Attestations:

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