Skip to main content

Library of Qt widgets for searching, viewing document streams

Project description

A library of Qt widgets for searching saved bluesky data and viewing document streams either live or from disk.

This is a prototype that may be fully rewritten, abandoned, or moved into other libraries.

Launching the demo

Clone and install.

git clone https://github.com/NSLS-II/bluesky-browser
cd bluesky-browser
pip install -e .

Run the demo.

bluesky-browser --demo

The above generates example data in a temporary directory and launches a Qt application to browse that data. It supposes there are two catalogs of data, abc and xyz, which could be from two instruments or perhaps “raw” data and “processed” data from the same instrument. The catalogs may be searched by date range or any custom Mongo query. Clicking on a search result pulls up a new tab with a more detailed view. There are two viewing areas to facilitate comparing data. Right-click and drag a tab to move it between areas.

To customize and extend this, generate a configuration file

bluesky-browser --generate-config

and edit it. The bluesky-browser will automatically discover and apply the configuration file if it located in the current directory where bluesky-browser is run. (In the future we will add a proper search path with other standard locations.)

Intended Scope

  • Search saved data from any intake-bluesky Catalog (backed by MongoDB or JSONL or ….).

  • View and compare data from runs. Use “hints” as defaults to guide how to view a given run, and let the user adjust from there.

  • Perform basic plot manipulations, not rising to the level of a full data analysis GUI (e.g. no nonlinear curve-fitting) but enabling some interactive tuning to provide a useful view of the data.

  • View live data streaming in from the RunEngine (via some message bus).

  • Be extensible, providing for the possibility of views that are specific to a beamline or instrument.

Current Features

  • Search multiple Catalogs (e.g. multiple beamlines) for saved data and sort search results.

  • View selected search results in individual tabs or “over-plotted” in one tab.

  • View Header, baseline readings, and line plots from saved or streaming data.

  • “Over-plot” arbitrary groups of Runs, including saved data, streaming data, or a mix of both.

Roadmap

  • Get feature parity with Best-Effort Callback.
    • Table

    • Grid

    • PeakStats

  • Add image stack viewer.

  • Enable user to change what is plotted interactively. (The hints becomes just a default.)

  • Add a way to run just the viewer part against live data (from RE).

  • Add a “Summary” widget to the top of the Header tab.

  • Add integration with suitcase for file export, starting with CSV.

  • Add context menus (right click) as an alternative way to do overplotting, etc.

  • Support “progressive search”, iteratively refining search results.

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

bluesky-browser-0.1.0a2.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

bluesky_browser-0.1.0a2-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file bluesky-browser-0.1.0a2.tar.gz.

File metadata

  • Download URL: bluesky-browser-0.1.0a2.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for bluesky-browser-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 0e4b978ea216cd42fa72c51253646308b25536d4be9a5126d4bfc20790c538ea
MD5 bf6cffd3779e64f15537b898d30ed138
BLAKE2b-256 0d0f88291a37140fb67c2c0d88811e5bc651a7f7b87b95aa2a2ba2edc8963b79

See more details on using hashes here.

Provenance

File details

Details for the file bluesky_browser-0.1.0a2-py3-none-any.whl.

File metadata

  • Download URL: bluesky_browser-0.1.0a2-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8

File hashes

Hashes for bluesky_browser-0.1.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b88c14586a3194b6f625f4901e13a79619d11a1b7c9dfa2f369d065e9c40b5b
MD5 e6e8c613ac9780ad89e57c15da2f4a52
BLAKE2b-256 33615c1f95ab9995781f0d484cd6f710fc4d1920367683c319d185d7d204f454

See more details on using hashes here.

Provenance

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