Skip to main content

Reusable PyQt6 browser dialog for Olympus VSI image containers.

Project description

olympus-browser-qt

Reusable PyQt6 dialog and viewer for browsing Olympus / Evident CellSens .vsi datasets.

This package follows the same public shape as the Leica, Zeiss, and Nikon Qt browsers, but uses a native Python VSI/ETS reader. It does not use Bio-Formats or Java.

Install

pip install -e .

For this checkout, run_viewer.cmd uses the local deconvolve conda environment when it is available.

Current Status

  • Scans folders for .vsi files and exposes Olympus image contexts.
  • Reads TIFF preview/SIS metadata from the .vsi container with tifffile.
  • Discovers companion ETS files in _<vsi stem>_/stack*/frame_*.ets.
  • Natively parses the Olympus SIS/ETS chunk table for raw uncompressed ETS files.
  • Reads real uint8, uint16, integer, and float raw ETS planes and regions.
  • Generates real previews from ETS planes, with TIFF preview fallback.

Compressed ETS variants such as JPEG, JPEG2000, PNG, BMP, and lossless JPEG are recognized by compression code but are not decoded yet.

Single Select

from PyQt6.QtWidgets import QApplication
from olympus_browser_qt import OlympusBrowserDialog

app = QApplication([])
ctx = OlympusBrowserDialog.select_image_context(roots=[r"D:\data"])
if ctx is not None:
    print(ctx.name, ctx.container_path, ctx.size_x, ctx.size_y)

Direct Pixel Reads

from olympus_browser_qt import OlympusGateway

node = OlympusGateway().container_node(r"D:\data\sample.vsi")
ctx = node.children[0].context

plane = ctx.open().read_plane(z=0, c=0)
stack = ctx.open().read_stack(c=0)
arr = ctx.open().read_array()

The public handle returns NumPy arrays. For the sample raw ETS dataset, planes are real uint16 arrays read from the external .ets file.

CLI

olympus_browser D:\data
olympus_browser D:\data\sample.vsi --multi
olympus_viewer
run_viewer.cmd

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

olympus_browser_qt-0.1.0.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

olympus_browser_qt-0.1.0-py3-none-any.whl (52.9 kB view details)

Uploaded Python 3

File details

Details for the file olympus_browser_qt-0.1.0.tar.gz.

File metadata

  • Download URL: olympus_browser_qt-0.1.0.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for olympus_browser_qt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ff1cca445a06223fee3afef961b997b31d94649c21cf48e1adb6be3aac61aed
MD5 bf1dc5ebfc580bd7973a41feaf6676c4
BLAKE2b-256 573c9ac7397b12718d722ad27329d033f70b6958f402f0a17695ca1cfe533777

See more details on using hashes here.

File details

Details for the file olympus_browser_qt-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for olympus_browser_qt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f1f49b4cdc2ade22da1da500a2ddd607cf7d1ce82a1c3f0a74709080403efbb
MD5 477f9782e23dc49a243d7f4bd2d2eb33
BLAKE2b-256 924283593f957316a43f9f3deedb0dfc13868cf317f503d3206901019dd1c6ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page