Fast visualization library for oneline analysis
Project description
foamgraph
foamgraph
was originally developed as part of the online analysis framework
EXtra-foam
to provide fast display (10 Hz) and interactive data analysis for photon science
experiments at the state-of-art free-electron laser (FEL) facility - European XFEL.
It was implemented on top of the famous Python graphics and GUI library
PyQtGraph. The following features make
foamgraph
stand out:
- The widgets and graphics objects are dedicated for photon science experiments.
- The performance has been significantly improved.
- It trades flexibility for an easy-to-use and unified API.
It must be emphasized that foamgraph
is only a GUI library. It does not provide
any interfaces for data and metadata exchange between the backend and the GUI because
it is facility and experiment specific.
Nevertheless, when integrating GUI into a real-time data analysis pipeline, there are a couple of things to be taken into account:
- The GUI in principle should not perform any number crunching jobs, otherwise it will be slowed down because it is written in Python.
- Light computation tasks can be performed in a Python thread and the communication between the GUI and the processor can still be fulfilled using Qt's signal-slot connections.
Examples
- Open a terminal and start the producer:
python examples/producer.py
- Open another terminal and start the plot gallery example
python examples/plot_gallery.py
- Open another terminal and start the image analysis example
python examples/image_analysis.py
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
Built Distribution
Hashes for foamgraph-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4cb2430374f8fda74e3631ff1483a6a76cef60593495139897a7e592acc8b66 |
|
MD5 | 45cf3d35b82aa303eebc574707b035ff |
|
BLAKE2b-256 | a2bdb3aa36a5ebba3d4203c2d5bf07cb49efa74ff264011b572bcea3c5dacb4a |