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.12.12

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.12.12

  • Add attrs property to FbdFile.

  • Improve code quality.

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.12.12.tar.gz (43.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.12.12-cp314-cp314t-win_arm64.whl (128.4 kB view details)

Uploaded CPython 3.14tWindows ARM64

fbdfile-2025.12.12-cp314-cp314t-win_amd64.whl (165.4 kB view details)

Uploaded CPython 3.14tWindows x86-64

fbdfile-2025.12.12-cp314-cp314t-win32.whl (139.0 kB view details)

Uploaded CPython 3.14tWindows x86

fbdfile-2025.12.12-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.12.12-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.12.12-cp314-cp314t-macosx_11_0_arm64.whl (163.7 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

fbdfile-2025.12.12-cp314-cp314t-macosx_10_15_x86_64.whl (167.7 kB view details)

Uploaded CPython 3.14tmacOS 10.15+ x86-64

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

Uploaded CPython 3.11+Windows ARM64

fbdfile-2025.12.12-cp311-abi3-win_amd64.whl (136.1 kB view details)

Uploaded CPython 3.11+Windows x86-64

fbdfile-2025.12.12-cp311-abi3-win32.whl (112.6 kB view details)

Uploaded CPython 3.11+Windows x86

fbdfile-2025.12.12-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.12.12-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.12.12-cp311-abi3-macosx_11_0_arm64.whl (150.0 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

fbdfile-2025.12.12-cp311-abi3-macosx_10_9_x86_64.whl (150.9 kB view details)

Uploaded CPython 3.11+macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2025.12.12.tar.gz
Algorithm Hash digest
SHA256 78bf0b0ecb752813b641555ad394fe7107f5e49dce982aaa704a7395e60d923b
MD5 27d974a6e38711aa000f4df057706281
BLAKE2b-256 919e9aec2a3e25b4f316e546704cd28e2e977228754db171f2ab4baa23c67802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 2c21369da0acb45d47e6cc0d560493262e7464f07972b5c163a241bff1cc400f
MD5 196ddb7f47c4a25eee99a1a04cd267e7
BLAKE2b-256 f191eacc74fbd14f8af6e75dc0e5d7924a1ddfd051e7491c92f5392bbc5d6e6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 5b85bcd40e036422d38d3a160cb87283b3144574e268a922d0021fa531ec7b91
MD5 066d09b0dd1dabebbb8cd25fc05077cf
BLAKE2b-256 f8f5d61d3e30fc8fb257ba244d3fd583d559bd41ceaccddaca33db2a52100503

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2025.12.12-cp314-cp314t-win32.whl
Algorithm Hash digest
SHA256 05850d400f4e2e047c704407eaa7c39a6126cefd2027ced53e8169ad3700d786
MD5 eb5caae9a0a1c87bfc0b822fd186c9a3
BLAKE2b-256 b907a234567b5a0bb6c50024e519b6d2d8f23bc8102c1e7ea4fbea5e97511550

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 635dd98372940ce2a4bdab8521c774c65d2ba654513d60dc3fbbb39be6c19989
MD5 a00a603d0e350421e077ce765cb0635d
BLAKE2b-256 35d532e721043a4697380c748cf608f8cf18ec030f1b819636b2b68f62b2c8c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ff0a675384b11d5a248318eebd9b200631b07bbb0707d808970c9e11330f1cef
MD5 01adcf59286365be66d29d361600b050
BLAKE2b-256 afb088c8672e40fd2e64fe0e46f9933b16bc0213a182584700a2fcd149f3bfbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f33950a08d8f8912f33ebcc60befb7138e4641d4bc31db27a8803d32649dcd76
MD5 18366686a91e2fb11bcc86b441608062
BLAKE2b-256 b94f46396bcfd9d3fdca4e1d5ca7ae1237da0ffb63909b7bb8f672cf85a94397

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp314-cp314t-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 c87ff170e078839e7898b753019422ba096277ee0db002b53934063f9c532c4d
MD5 abf1472fbd3ae4f71687e2002bacb128
BLAKE2b-256 cd190469d288b6ba1fadb82f3ffcbc44dbae3db3fd307fc9f6554e2a84dfd870

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fbdfile-2025.12.12-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.11

File hashes

Hashes for fbdfile-2025.12.12-cp311-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 b01f729b7025e3399e346dbc38fb7ccc44f0114a29165c00b3c889f3d521cc0e
MD5 f3adb4029a2756558636f539bd2299b6
BLAKE2b-256 9eb83230b2b7b979fa3bb83407658f0f6f1fed8dc453f9d252763ec922bb5c6f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2025.12.12-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 90ad87455701f007964cb7e38747699969cf95333442b29d51fc2987e1de62ed
MD5 029b7117f952ebb3da2c8fea5673197d
BLAKE2b-256 5a71398c6d3f3994ce582bac1d2478ee09228cc6f489694d820be57239726b76

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2025.12.12-cp311-abi3-win32.whl
Algorithm Hash digest
SHA256 d62b84e24a125b5c683da88abd735da4138db6a581660438aeefd60a9fa06652
MD5 2dd3b4fb2b44e5090808ed90a91fae6b
BLAKE2b-256 8dc4b655bebb2b8b9ceb7231e05b4a63d6b45ddb14f66e52f1a8588b09000285

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2d1699e34343026629b25b596ff96ad5af620fe9c131b0bbf2522a3a357f1671
MD5 648b645e7db2c6e7167dfcb5f7b8432e
BLAKE2b-256 8f3883be67895fd3eaf81630266f2c9503e402e68e3c26da3e87492315e75cf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 773313c3484b9b456f78c697cb60a0a517dc54dcae0286b9a931dbedfbd770e5
MD5 03ba9269f8c6faa386a62b002a14addd
BLAKE2b-256 83d7d7276da38c40767bc5e06147f95a9ee693e9cef4273043693bd59764a40a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86148aba1ec4a444387c49782a5fbc5b7b75019976375e56882dcaf2b8c2aa8d
MD5 99eb0a6454dc6b77a2add34d9792a34d
BLAKE2b-256 4328cf85318697c0793e9ed0f77fd4d71559855785715306daeb11efa8d1bf83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2025.12.12-cp311-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 945cefce983b86aa4bad693e3cea7c090fc5a1f29978187d94a55dace4b3c834
MD5 d6cf81bb6b5160affe0fc2d74d9bc365
BLAKE2b-256 b2fa5db3e3a743e412eba54323be17672300294da455c56006af9395fb40b011

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