toolsandogh
A Python toolbox for iSCAT microscopy data analysis, developed by the Sandoghdar Division of the Max Planck Institute for the Science of Light (MPL).
Overview
toolsandogh provides a small, reusable library for loading, processing, analyzing, and storing microscopy videos. It is designed around a canonical 5D data model---T (time), C (channel), Z (slice), Y (row), X (column)---implemented as lazy xarray arrays backed by Dask.
Features
- Lazy, out-of-core computation: Videos are kept as Dask arrays so you can work with datasets larger than memory.
- Labeled, metadata-rich arrays: Results are
xarray.DataArrayobjects withTCZYXdimensions and OME metadata. - Multiple microscopy formats: Read and write RAW/BIN, TIFF, OME-TIFF, OME-Zarr, ND2, and other formats supported by bioio.
- Reusable analysis primitives: Rolling statistics, radial variance transform, synthetic data generation, and more.
Installation
This project uses the uv package manager. Clone the repository and run:
uv sync
To install in editable mode for development:
uv pip install -e ".[dev]"
Quick start
import toolsandogh as sand
# Load a video (any bioio-supported format or raw BIN/RAW file).
video = sand.load_video("movie.nd2")
# Apply a rolling average along the time axis.
smoothed = sand.rolling_average(video, window_size=5, dim="T")
# Save the result back to disk.
sand.store_video(smoothed, "smoothed.ome.tiff")
Use help(sand.load_video) or help(sand.store_video) for details on the available arguments.
Repository layout
src/toolsandogh/--- the main Python package.src/toolsandogh/tests/---pytesttest suite.DESIGN.md--- design conventions and coding standards.
Contributing
Please see DESIGN.md for coding conventions, documentation standards, and architecture decisions. In brief:
- All public functions must be type-hinted and documented in numpydoc style.
- Code is linted with
ruffand type-checked withpyright. - Prefer free functions; keep data in
xarray.DataArray/Datasetform. - Tests go in
src/toolsandogh/tests/.
License
GPL-3.0-or-later.
Metadata
Release files for toolsandogh 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| toolsandogh-0.6.1.tar.gz | 300.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| toolsandogh-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 404.9 kB
Release files / toolsandogh-0.6.1.tar.gz
| Download URL | toolsandogh-0.6.1.tar.gz |
|---|---|
| Size | 300.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbfe029406abd894860999a2eb204138db3d348860e88147459d968d0900a935
|
|
BLAKE2b-256 checksum How to use checksums |
226bd6e91e964bd40ca2c3afe5d5c015ebbad13626fe816dbc1bf5769d54ac32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logRelease files / toolsandogh-0.6.1-py3-none-any.whl
| Download URL | toolsandogh-0.6.1-py3-none-any.whl |
|---|---|
| Size | 104.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86e5af891b5ae3cd19cbd620048f111f57bc8b9243af387398922f01b7ddfdff
|
|
BLAKE2b-256 checksum How to use checksums |
d27813fa9ddb35d4a336a9e86d2183a823519de1cf9add1d63feb5a15c39f2e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency log