Skip to main content

A simple viewer application for data stored in a Blueksy-Tiled database.

Project description

NBS Viewer

NBS Viewer is a simple viewer application designed to visualize and interact with data stored in a Tiled database with Databroker formatted runs. It is optimized for the viewing of 1-d or 2-d data.

Usage

Connecting to a Tiled Database

  1. Start the Application: Run the nbs-viewer command.
  2. Select Data Source: In the application, select the data source you want to connect to. You can choose from various options such as tiled URIs, or tiled profiles stored on your local machine. As a test, try selecting the Tiled URI, and pointing at https://tiled-demo.blueskyproject.io and loading the BMM example catalog.
  3. Visualize Data: Once connected, you can browse and the runs available in the Tiled database, filtered by time. Additional filtering based on the data in each row is available via Regular Expressions. The default lookback time is 1 month. The tiled-demo example catalogs have a date of 2022, so be sure to adjust the time range if you are trying them out.
  4. Add Data to a Plot: Selected runs can be added to the plot area via the "Add Data to Current Plot" button. The data in these runs can then be inspected, and X-Y data can be added to the plot by selecting the appropriate checkboxes and using the "Update Plot" button. Image data is supported, but not optimized. Be careful when trying to plot large images.

Useful Features

  • It is possible to enter regular expressions to filter the catalog run list. Select the desired column to filter on, and then enter a regular expression in the text box.
  • The "transform" checkbox in the X-Y data selection panel will enable arbitrary math functions to be run on the "y" data, using the asteval package. The y data may be referenced as 'y', and the most common numpy functions are automatically imported with no need for the np prefix. ** For example, enter 'log(y)' (with no quotes), to plot the log of the y data. Or enter 'y/mean(y)' to normalize the data to its average value. ** Transforms are applied to all currently-selected data.
  • The 'normalize' column is used to divide all the plotted y data by a single channel. For spectroscopy, this is usually a channel called 'i0'. When using transform, the already-normalized y-data is used, if a normalization channel is selected.

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

nbs_viewer-0.1.2.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

nbs_viewer-0.1.2-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file nbs_viewer-0.1.2.tar.gz.

File metadata

  • Download URL: nbs_viewer-0.1.2.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for nbs_viewer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a1dce94b5b1c0e6eac50793d2dbc2651f26d6d526cb5083e486af7c2e071d7fe
MD5 8dd6426835e3d02fd384e13550955ca4
BLAKE2b-256 71527bcbd9d3e4d8e8127a4c9e4c748709420b6155769b837c7e0c9052b6345d

See more details on using hashes here.

File details

Details for the file nbs_viewer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nbs_viewer-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for nbs_viewer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a449ea7d2e68f50717a2fcc8ea8cba50abb472ae7d625939cb498b8c0676638b
MD5 67dcd2c6fb1ba4dcba30758adbcf5a89
BLAKE2b-256 b4b5a56938494f2dfcb284ff9561c2b864d2a480036dfac472634b981e3ac82a

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