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
- Start the Application: Run the
nbs-viewer
command. - 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.
- 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.
- 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
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
nbs_viewer-0.1.3.tar.gz
(24.6 kB
view details)
Built Distribution
File details
Details for the file nbs_viewer-0.1.3.tar.gz
.
File metadata
- Download URL: nbs_viewer-0.1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b5f129b83dab75a44174d9dacd3291d44897c00b9ca0cdd35f5018ca7198cc4 |
|
MD5 | 442cc83651cdc4e7dbb5d26651b917b2 |
|
BLAKE2b-256 | b42e19a0fb45cc367dba352ac598a99eeb405389a090f1e25bb5c300be60f2e7 |
File details
Details for the file nbs_viewer-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: nbs_viewer-0.1.3-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3775688ac0aec374e50cf144306ae67a9a0c8974ca82af0bc766f7e155f0c5cc |
|
MD5 | 715f859da06ed89d074dcb276f263358 |
|
BLAKE2b-256 | 8e32d10143460a7a87ad9bc7bdae8d982b0878dbc0213771007f60925a57bfa9 |