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:

2026.3.20

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

2026.3.20

  • Frames and asimage methods always refine laser_factor by default (breaking).

  • Add tri-state refine option to frames and asimage methods.

  • Add refine_settings method to refine pixel_dwell_time and laser_factor.

  • Add more decoder settings (not tested).

  • Fix decode to read all bytes from streams and fix skip/count guard.

  • Fix cluster-to-frame-marker mapping in frames fallback path.

  • Fix from_fbs header detection to use fbf_parse_header.

  • Fix decoder_settings to not swallow errors from valid decoders.

  • Use fbd_decode return value to trim markers array.

  • Drop support for Python 3.11.

2026.2.6

  • Fix code review issues.

2026.1.14

  • Improve code quality.

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.11 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', pixel_dwell_time=0.937
... ) 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-2026.3.20.tar.gz (51.0 kB view details)

Uploaded Source

Built Distributions

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

fbdfile-2026.3.20-cp314-cp314t-win_arm64.whl (131.8 kB view details)

Uploaded CPython 3.14tWindows ARM64

fbdfile-2026.3.20-cp314-cp314t-win_amd64.whl (167.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

fbdfile-2026.3.20-cp314-cp314t-win32.whl (142.3 kB view details)

Uploaded CPython 3.14tWindows x86

fbdfile-2026.3.20-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-2026.3.20-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-2026.3.20-cp314-cp314t-macosx_11_0_arm64.whl (166.4 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

fbdfile-2026.3.20-cp314-cp314t-macosx_10_15_x86_64.whl (167.6 kB view details)

Uploaded CPython 3.14tmacOS 10.15+ x86-64

fbdfile-2026.3.20-cp312-abi3-win_arm64.whl (121.9 kB view details)

Uploaded CPython 3.12+Windows ARM64

fbdfile-2026.3.20-cp312-abi3-win_amd64.whl (143.9 kB view details)

Uploaded CPython 3.12+Windows x86-64

fbdfile-2026.3.20-cp312-abi3-win32.whl (119.9 kB view details)

Uploaded CPython 3.12+Windows x86

fbdfile-2026.3.20-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (999.2 kB view details)

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

fbdfile-2026.3.20-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (979.6 kB view details)

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

fbdfile-2026.3.20-cp312-abi3-macosx_11_0_arm64.whl (149.2 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

fbdfile-2026.3.20-cp312-abi3-macosx_10_13_x86_64.whl (155.5 kB view details)

Uploaded CPython 3.12+macOS 10.13+ x86-64

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2026.3.20.tar.gz
Algorithm Hash digest
SHA256 a9780666f44046f52a309c876e52b7a990c6587b6783928ac0fc73ba912b4491
MD5 a243244153c426d74d4dd6a766667633
BLAKE2b-256 4dd3c68f93627b8c1c82fcd53fadaccc4729ed3518862f8a36cd103cc3d4cdf8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 1f775960435706782450e501efaed006862eeb683d2847538849fc80cfbe2e46
MD5 966bd38babc1e737f4a33f24db9a0750
BLAKE2b-256 511eba612f276fbe483622fbe08173f91024807fbd381b8ac24419c24ff965ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 cac842c377b9596eefe0f8b970091e6d96b3271c95e12f7fd25eca09183c58e1
MD5 93f67971dfac9d568b6a86b399c43e90
BLAKE2b-256 0d26943469064e18fbb3934fd3bb53e1c931721c2348c829160b409f8f9fed44

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2026.3.20-cp314-cp314t-win32.whl
Algorithm Hash digest
SHA256 190f6579997c1510e31a987e340a77576ec5f5414b13a22bc2e3952f40018f77
MD5 6bb7fc334e66a38590c53c22381ef30e
BLAKE2b-256 13a953b578f160f7ce5711acb3b5a62b799eccae00d91cf6214bf05f106c1a9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8da5f5a799387370337ebb209c7a67a4bf9747b00d87bc0fe1f9ddfb588c51d0
MD5 27e49c30823c585ea2c25d3bbca4ad79
BLAKE2b-256 45f778063d08bfe2d80813f78a517b26182d2f6853fa3cead042976f4f7e47ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9ed14cff31918606215aad2e3c40af71b3a9765503dcfbe301507a8cb1c492b2
MD5 e99c2119cc1338a0c9eed01362e31116
BLAKE2b-256 7510996a5802e61e4e408cc7bc36c47e21c489bd82384ff9f64fc4662230ce55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 896e98e89455037786aa649227b8d240986f637d9536ca7ec7748eb98dd7764c
MD5 f5066030b89458d4062508ebc7f90b9e
BLAKE2b-256 466c4adfb0389d713799df045739a7f3c11e252a05651ece221235ab60c1dd8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp314-cp314t-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 fc083a395b6f9683c78ceada30f536af221758c4cccd2b790d9d202dbabe110a
MD5 3b62d481cbbea8194af6f9f02bb150b0
BLAKE2b-256 4fbefc8ac6423cd34e177df2ff90ded4f4f0a8cd52503cc4acc2e60ff440eebc

See more details on using hashes here.

File details

Details for the file fbdfile-2026.3.20-cp312-abi3-win_arm64.whl.

File metadata

  • Download URL: fbdfile-2026.3.20-cp312-abi3-win_arm64.whl
  • Upload date:
  • Size: 121.9 kB
  • Tags: CPython 3.12+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for fbdfile-2026.3.20-cp312-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 7b54e0afb3af615018331d80753591c37515a3a200e14e47a23457aee6cee55b
MD5 d57bbda87d59231ada5036e59c976229
BLAKE2b-256 47ce475b7778d626e8dc4f54f4ff046bf73d6c51f44405eb1804955f1699469b

See more details on using hashes here.

File details

Details for the file fbdfile-2026.3.20-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: fbdfile-2026.3.20-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 143.9 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for fbdfile-2026.3.20-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b3849eea2d98be403c8cde7839820afd638a757bf6c4d555d873722972003bbc
MD5 a9438ab4b7401cd28d07c361ca8022f9
BLAKE2b-256 fad08202e7910a6ba1a541489b2f9d21f99676ad7b10c43c1ee7d07f15db5370

See more details on using hashes here.

File details

Details for the file fbdfile-2026.3.20-cp312-abi3-win32.whl.

File metadata

  • Download URL: fbdfile-2026.3.20-cp312-abi3-win32.whl
  • Upload date:
  • Size: 119.9 kB
  • Tags: CPython 3.12+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for fbdfile-2026.3.20-cp312-abi3-win32.whl
Algorithm Hash digest
SHA256 d4c57f052b3cc9fdba2c6ed42d4ccbd4c0f627c6223de52f0cf4f84930e19043
MD5 6899e5c46cdfc25d4adc5ede71c76bfc
BLAKE2b-256 366ba5d1b9faab405bb2b53d6b2c632d30494d9df5afd42c78b3d204b632b90b

See more details on using hashes here.

File details

Details for the file fbdfile-2026.3.20-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 366d13d4b123329b9f2da644f7d82f9885bc0734b988e3e17b21ae7a1f9fc9bc
MD5 dfc8b9be0b66de206bf16263268a3649
BLAKE2b-256 54f781477db07f674663370610944387a4b80323b694476b6dab858df2a60de0

See more details on using hashes here.

File details

Details for the file fbdfile-2026.3.20-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 11e5e6ec5db7c99c98827a2a92910e30ca9f38c0d464a739b2d1600952c29a57
MD5 bbe22053f1fb3ff056268cfbff9e1c5e
BLAKE2b-256 6f7b58077d26fc2cd39e53d9fa6c33da996e90452b6e7521e5b93a152c1e0c99

See more details on using hashes here.

File details

Details for the file fbdfile-2026.3.20-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b7a8f2554dc3225c27c14ae75c284c5d1692467ef34830ddcaefac67eb7dfd5
MD5 dfe37e0f71bd57807ad568ae1a888f28
BLAKE2b-256 576777be1f52c458c3ffe1839122525aad79463e2e2e977203f05f4e7ba251d2

See more details on using hashes here.

File details

Details for the file fbdfile-2026.3.20-cp312-abi3-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for fbdfile-2026.3.20-cp312-abi3-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ca95a6cf10039063fa80b6ac43599c0155212453b3a260473efc5345cf8d6218
MD5 9c52e9da3cfe9bf0e329e11f919345c5
BLAKE2b-256 a1b68748e93a271154bfff9686c5cfc3b011e5ffb9f9b8869c865890a036aa51

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