Skip to main content

Read FLIMbox data and related files (FBD, FBF, and FBS.XML)

Project description

Fbdfile is a Python library to read FLIMbox data (FBD), firmware (FBF), and setting (FBS.XML) files. The FLIMbox is an FPGA-based device for high bandwidth, multi-channel data collection for fluorescence lifetime-resolved imaging (FLIM) from a pulsed laser scanning confocal microscope. The files are written by SimFCS and ISS VistaVision software.

Author:

Christoph Gohlke

License:

BSD-3-Clause

Version:

2025.11.8

DOI:

10.5281/zenodo.17136073

Quickstart

Install the fbdfile package and all dependencies from the Python Package Index:

python -m pip install -U fbdfile[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):

Revisions

2025.11.8

  • Allow to override FbdFile decoder, firmware, and settings.

  • Always try to load settings from .fbs.xml file.

  • Factor out BinaryFile base class.

  • Derive FbdFileError from ValueError.

  • Build ABI3 wheels.

2025.9.18

  • Fix reading FBF and FBS files from streams.

2025.9.17

  • Make frame_markers a numpy array.

  • Add options to specify number of OpenMP threads.

2025.9.16

  • Initial alpha release based on lfdfiles 2025.7.31.

Notes

The API is not stable yet and might change between revisions.

Python <= 3.10 is no longer supported. 32-bit versions are deprecated.

The latest Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 is required on Windows.

The FLIMbox formats are not documented and might change arbitrarily. This implementation is based on reverse engineering existing files. No guarantee can be made as to the correctness of code and documentation.

SimFCS, a.k.a. Globals for Images, is software for fluorescence image acquisition, analysis, and simulation, developed by Enrico Gratton at UCI.

VistaVision is commercial software for instrument control, data acquisition, and data processing by ISS Inc (Champaign, IL).

Examples

Read a FLIM lifetime image and metadata from an FBD file:

>>> with FbdFile('tests/data/flimbox_data$CBCO.fbd') as fbd:
...     bins, times, markers = fbd.decode()
...     image = fbd.asimage()
...
>>> image.shape
(1, 2, 256, 256, 64)
>>> print(bins[0, :2], times[:2], markers[:2])
[50 58] [ 0 32] [1944097 2024815]
>>> import numpy
>>> hist = [numpy.bincount(b[b >= 0]) for b in bins]
>>> int(hist[0].argmax())
53

View the histogram and metadata in a FLIMbox data file from the console:

$ python -m fbdfile tests/data/flimbox_data$CBCO.fbd

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

fbdfile-2025.11.8.tar.gz (42.9 kB view details)

Uploaded Source

Built Distributions

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

fbdfile-2025.11.8-cp314-cp314t-win_arm64.whl (128.2 kB view details)

Uploaded CPython 3.14tWindows ARM64

fbdfile-2025.11.8-cp314-cp314t-win_amd64.whl (165.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

fbdfile-2025.11.8-cp314-cp314t-win32.whl (138.8 kB view details)

Uploaded CPython 3.14tWindows x86

fbdfile-2025.11.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

fbdfile-2025.11.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

fbdfile-2025.11.8-cp314-cp314t-macosx_11_0_arm64.whl (163.1 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

fbdfile-2025.11.8-cp314-cp314t-macosx_10_15_x86_64.whl (167.1 kB view details)

Uploaded CPython 3.14tmacOS 10.15+ x86-64

fbdfile-2025.11.8-cp311-abi3-win_arm64.whl (117.1 kB view details)

Uploaded CPython 3.11+Windows ARM64

fbdfile-2025.11.8-cp311-abi3-win_amd64.whl (136.2 kB view details)

Uploaded CPython 3.11+Windows x86-64

fbdfile-2025.11.8-cp311-abi3-win32.whl (112.5 kB view details)

Uploaded CPython 3.11+Windows x86

fbdfile-2025.11.8-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

fbdfile-2025.11.8-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (1.0 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64manylinux: glibc 2.28+ ARM64

fbdfile-2025.11.8-cp311-abi3-macosx_11_0_arm64.whl (149.3 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

fbdfile-2025.11.8-cp311-abi3-macosx_10_9_x86_64.whl (150.4 kB view details)

Uploaded CPython 3.11+macOS 10.9+ x86-64

File details

Details for the file fbdfile-2025.11.8.tar.gz.

File metadata

  • Download URL: fbdfile-2025.11.8.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for fbdfile-2025.11.8.tar.gz
Algorithm Hash digest
SHA256 732510e0d3ab453b4b9f8c37bf7e6cf24677a0a68beeffe91761d3c502684f35
MD5 764a8df04aa6cf89ca6ce3c1ba6e229c
BLAKE2b-256 4969e4f569ef006741c1377a737cf18c6d47c91468cf147c76f2d815cc85a251

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp314-cp314t-win_arm64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 6230c82b444c7f4709da3719064e0f56f58ccf360cfae50f87be138d247c39cc
MD5 f61562e8cc6467777fb43879ba498868
BLAKE2b-256 1d8f45b3d0f08649d8856b455d44860650acabb257e2b29648e27b60a98459be

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp314-cp314t-win_amd64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 16161b9dc600ccdc66bf982010315eed215bc0b1e557a7d3b0c86a8775512085
MD5 e273b5087bd551795c6361af205490d3
BLAKE2b-256 260b9f21ac76f555e0f3b6180ca5eaa07d39548f172e78e11ab0de567dfc9e3f

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp314-cp314t-win32.whl.

File metadata

  • Download URL: fbdfile-2025.11.8-cp314-cp314t-win32.whl
  • Upload date:
  • Size: 138.8 kB
  • Tags: CPython 3.14t, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for fbdfile-2025.11.8-cp314-cp314t-win32.whl
Algorithm Hash digest
SHA256 c56ee597e01e48c4b27610bba3a1bbbe695e62fbaa631c09d499771525f0d28e
MD5 fd8d46f6e4efac837ba2c13f01a4322e
BLAKE2b-256 ab5642133bf36755a83d7f8858ed0b258346df4baa54228c00ffc33442980023

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0a601abc48d39db1430f9c46abcbce7ea6e0764ffde82aa787d292f9493c8ce5
MD5 3286fbc6d6713f7d71a4fd7fd1d386b1
BLAKE2b-256 d888d9de865ca985145c650bd5c0ce6ec746dbd90ad874f22e5c6e175d105636

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ae01c24c25b85ceed4cb096f314ff5eb7e4300823489a684cdb596aff188811a
MD5 23273d7cf30817e01dbd844c6f3b6ab5
BLAKE2b-256 d244e30a06cf8a3f2ce2a1efd4f08b306a4b4d7108768a5b47d7655a01bf365d

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c3f245ace2d24a9f5587bcf188da2d4e00730e8d5040c017974019278b2e80d
MD5 de48c528e28528b200fb9243a1c03b69
BLAKE2b-256 19e333d67888a711528f936ddef42ca7084dd3a19d487baccc9539b996414600

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp314-cp314t-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp314-cp314t-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 765426c33bfc3eaaa345281f1fcc1ffc2066722148d48eeecafc10882fdc6c99
MD5 8907df34dd56ba3fe9c2312ef2b2c7e9
BLAKE2b-256 825331882f7a0ec78ac23d233d202d4b47721439058d9c2670b096592c42f45c

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp311-abi3-win_arm64.whl.

File metadata

  • Download URL: fbdfile-2025.11.8-cp311-abi3-win_arm64.whl
  • Upload date:
  • Size: 117.1 kB
  • Tags: CPython 3.11+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for fbdfile-2025.11.8-cp311-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 ba022fa9bfde47c923f5893710235f156a3cfdd4601560be6d54e1ec44991351
MD5 725559ba3031e363b72271955b76868e
BLAKE2b-256 995687059b632770794278385e6ba1355cb283b2e6e89b4ca4ed902553dec21e

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: fbdfile-2025.11.8-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 136.2 kB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for fbdfile-2025.11.8-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5b2c991ebb5d257d6f1a41a770e6abe3f68e99160edb343a13def3efb943709a
MD5 8cf9d120177946a326da5b7bad1df5d3
BLAKE2b-256 10c18427db1aab6a01f333a5d203224c9e151eb6537ee7fdef3263c3e7299860

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp311-abi3-win32.whl.

File metadata

  • Download URL: fbdfile-2025.11.8-cp311-abi3-win32.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for fbdfile-2025.11.8-cp311-abi3-win32.whl
Algorithm Hash digest
SHA256 239077f40e62fd464d5cd6671f44272002956c1822a4997eff8d5106cd055294
MD5 323645f55c0169a0b525f225258e4003
BLAKE2b-256 a640a03c8e357683d0f534d1091e8a88acbb9ada8c81307c669660840c7af22d

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 465bbcc747cc7847b95a1e5216306b6b42222848b49cd94cc2d3f14f4b0b8eca
MD5 1b09b651ec737660de481272eec9938d
BLAKE2b-256 8ddefb6a3a591b2886a020831ba29c36246ace8847ff1d30eb639cdaba5427cf

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 82e0a814c440c2359dd2f91ba24c6c28cf4854e2a341583b1b70e35b34384a89
MD5 99a9237c31ce034683f7e271329b4be4
BLAKE2b-256 f283e7094e9301499645dea293337d4615e6af4277aaaf715791b534236a4512

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 917735d798f8fb5b80a17ba9a8ecfe31149deeb898866e7147f43dc7e8e65d8f
MD5 ee1e96abad961a221d742d710e5fc4c4
BLAKE2b-256 dfd42325dbbe636877f3391f73fca59220b0c69a2c6ee75a3ffb6a8d04aad65d

See more details on using hashes here.

File details

Details for the file fbdfile-2025.11.8-cp311-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for fbdfile-2025.11.8-cp311-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 de94aa1adc193043d8718c2d3d37605d51b70d82c0a26d7c26cee97917623d70
MD5 b60adbff2b7f80b6f47e8231d24b349d
BLAKE2b-256 ee141297bde01383a8f4aafbacf87b84c95a15e75a304720a24dff6848b42c40

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