Read Imspector object binary format files (OBF and MSR)
Project description
Obffile is a Python library to read image and metadata from Object Binary Format (OBF) and Measurement Summary Record (MSR) image files. These files are written by Imspector software to store image and metadata from microscopy experiments.
- Author:
- License:
BSD-3-Clause
- Version:
2026.2.20
Quickstart
Install the obffile package and all dependencies from the Python Package Index:
python -m pip install -U obffile[all]
See Examples for using the programming interface.
Source code and support are available on GitHub.
Requirements
This revision was tested with the following requirements and dependencies (other versions may work):
CPython 3.11.9, 3.12.10, 3.13.12, 3.14.3 64-bit
NumPy 2.4.2
Xarray 2026.2.0 (recommended)
Matplotlib 3.10.8 (optional)
Tifffile 2026.2.16 (optional)
Revisions
2026.2.20
Initial alpha release.
…
Notes
Imspector is a software platform for super-resolution and confocal microscopy developed by Abberior Instruments.
This library is in its early stages of development. It is not feature-complete. Large, backwards-incompatible changes may occur between revisions.
Specifically, the following features are not supported: writing or modifying OBF/MSR files, non-OBF based MSR files, reading MSR-specific non-image data (window positions, hardware configuration), and compression types other than zlib.
The library has been tested with a limited number of files only.
The Imspector image file formats are documented at https://imspectordocs.readthedocs.io/en/latest/fileformat.html.
Other implementations for reading Imspector image files are msr-reader, obf_support.py, and bio-formats.
Examples
Read an image stack and metadata from a OBF file:
>>> with ObfFile('tests/data/Test.obf') as obf:
... assert obf.header.metadata['ome_xml'].startswith('<?xml')
... for stack in obf.stacks:
... _ = stack.name, stack.dims, stack.shape, stack.dtype
... obf.stacks[0].asxarray()
...
<xarray.DataArray 'Abberior STAR RED.Confocal' (T: 18, Z: 2, Y: 339, X: 381)...
array([[[[0, 0, 0, ..., 3, 3, 3],
[0, 0, 0, ..., 4, 3, 3],
...,
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]]]], shape=(18, 2, 339, 381), dtype=int16)
Coordinates:
* T (T) float64 144B 0.0 0.0 0.0 0.0 0.0 0.0 ...
* Z (Z) float64 16B 1.25e-07 3.75e-07
* Y (Y) float64 3kB 0.0 2e-07 4e-07 ...
* X (X) float64 3kB 0.0 2.002e-07 4.003e-07 ...
...
View the image stack and metadata in a OBF file from the console:
$ python -m obffile tests/data/Test.obf
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file obffile-2026.2.20.tar.gz.
File metadata
- Download URL: obffile-2026.2.20.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a80188c6ca6263ac061a6bddd75ad3ceaa1160381783e8e5d1369583dce7151b
|
|
| MD5 |
261a904769a1fb13ab8e354bdf788ee4
|
|
| BLAKE2b-256 |
c7cbfa3b00e401bf19b073481af13a899bf1edf6688517336a9dffb43f051bfa
|
File details
Details for the file obffile-2026.2.20-py3-none-any.whl.
File metadata
- Download URL: obffile-2026.2.20-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93f120da0bff1a7ecbbe15cf80576814e2168b0de7516d388773b0bfc2618c0e
|
|
| MD5 |
b259d5a8f4a823d6948506ae22813b55
|
|
| BLAKE2b-256 |
66873302bc96651577999aa3885acff301b0172e221425feb889d5e70cd43df1
|