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

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

  • Fix potential file handle leak in FbdFile init.

  • Fix pixel_dwell_time when scanner_line_start > 0.

  • Add options for memory-mapping and locked reading to BinaryFile.

  • Add option to memory-map FBD files.

  • Drop support for numpy 2.0 (SPEC0).

  • Support Python 3.15.

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.

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

The FLIMbox formats are undocumented and may vary between software and firmware revisions. This implementation is based on reverse engineering existing files. No guarantee can be made as to the correctness of code and documentation.

FBD (FLIMbox data) files contain a raw stream of encoded 16-bit or 32-bit words produced by the FLIMbox FPGA. Some newer files contain embedded firmware and acquisition headers before the encoded data stream. Legacy-format files have no header; acquisition settings are inferred from a 4-character tag in the filename that encodes frame size, pixel dwell time, FLIMbox configuration (time windows, channels, and harmonics), and scanner type.

FBF (FLIMbox firmware) files contain a NULL-terminated ASCII string of slash-separated key=value pairs followed by the binary FPGA firmware. They may be embedded at the start of an FBD file or distributed as standalone files.

FBS.XML files are XML settings files written by ISS VistaVision that may accompany FBD files and provide acquisition parameters such as frame size, pixel dwell time, scanner, and laser settings.

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.6.6.tar.gz (56.7 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.6.6-cp315-cp315t-win_arm64.whl (134.7 kB view details)

Uploaded CPython 3.15tWindows ARM64

fbdfile-2026.6.6-cp315-cp315t-win_amd64.whl (170.4 kB view details)

Uploaded CPython 3.15tWindows x86-64

fbdfile-2026.6.6-cp315-cp315t-win32.whl (145.1 kB view details)

Uploaded CPython 3.15tWindows x86

fbdfile-2026.6.6-cp314-cp314t-win_arm64.whl (134.7 kB view details)

Uploaded CPython 3.14tWindows ARM64

fbdfile-2026.6.6-cp314-cp314t-win_amd64.whl (170.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

fbdfile-2026.6.6-cp314-cp314t-win32.whl (145.2 kB view details)

Uploaded CPython 3.14tWindows x86

fbdfile-2026.6.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.1 MB view details)

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

fbdfile-2026.6.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (1.1 MB view details)

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

fbdfile-2026.6.6-cp314-cp314t-macosx_11_0_arm64.whl (169.1 kB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

fbdfile-2026.6.6-cp314-cp314t-macosx_10_15_x86_64.whl (171.2 kB view details)

Uploaded CPython 3.14tmacOS 10.15+ x86-64

fbdfile-2026.6.6-cp312-abi3-win_arm64.whl (124.9 kB view details)

Uploaded CPython 3.12+Windows ARM64

fbdfile-2026.6.6-cp312-abi3-win_amd64.whl (146.6 kB view details)

Uploaded CPython 3.12+Windows x86-64

fbdfile-2026.6.6-cp312-abi3-win32.whl (122.8 kB view details)

Uploaded CPython 3.12+Windows x86

fbdfile-2026.6.6-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

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

fbdfile-2026.6.6-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (983.3 kB view details)

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

fbdfile-2026.6.6-cp312-abi3-macosx_11_0_arm64.whl (151.9 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

fbdfile-2026.6.6-cp312-abi3-macosx_10_13_x86_64.whl (158.8 kB view details)

Uploaded CPython 3.12+macOS 10.13+ x86-64

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2026.6.6.tar.gz
Algorithm Hash digest
SHA256 b2e76ea41ea84357142b6142036efea96284f2d63e64ffbe0f3b5a238ee9ef43
MD5 abf00a5be3bcf5e1c28a01259a0848b9
BLAKE2b-256 fe3644e33da113c3858d355dbf07529bcd75527e20b969b7729eb64ca1243018

See more details on using hashes here.

File details

Details for the file fbdfile-2026.6.6-cp315-cp315t-win_arm64.whl.

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp315-cp315t-win_arm64.whl
Algorithm Hash digest
SHA256 a88e9bf31fb08caf30c6828fd8e030856731a680308ac61901ce04150218a927
MD5 beb408288046faebf521c0002dc5a2c8
BLAKE2b-256 6fc7329cfed5fa7a9ee32e00706e2d43d3796fb3d5ad1e616c12b1f0f3301ec7

See more details on using hashes here.

File details

Details for the file fbdfile-2026.6.6-cp315-cp315t-win_amd64.whl.

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp315-cp315t-win_amd64.whl
Algorithm Hash digest
SHA256 d33162febdf6b4d899d975a14924ff4900146c77ac88055a0b828bebffa84f0d
MD5 9235dcb6584f13e00bb86784b103f02e
BLAKE2b-256 9e41c19cd5046b6b621f53af04747660c74f1aff7544688ea595c0257db8bb4a

See more details on using hashes here.

File details

Details for the file fbdfile-2026.6.6-cp315-cp315t-win32.whl.

File metadata

  • Download URL: fbdfile-2026.6.6-cp315-cp315t-win32.whl
  • Upload date:
  • Size: 145.1 kB
  • Tags: CPython 3.15t, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for fbdfile-2026.6.6-cp315-cp315t-win32.whl
Algorithm Hash digest
SHA256 18f03ca2b6f8bf9c702ffdf3a2d4d8dd303450d98ee0381b0f1732f52a670aac
MD5 cad9f5200e174a5436fbb71b3fdac240
BLAKE2b-256 ebf93d2f7bf1467aa2babe8102f9cea3d1494370a02a7a4c8ae384125780a8a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp314-cp314t-win_arm64.whl
Algorithm Hash digest
SHA256 de024975f09049ffeacb839542fd8c4dc3b85ba22507c56ea278caaa19a6b827
MD5 b022b21eb5d0fb7a5e201f0a93036096
BLAKE2b-256 3bc0ebeae9a4d3ce6e46104ebf2532547b90e7f863adfa8d7e4d628d8fd346aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 d19aff247bfb46ef584f7d9382c57f023a3a778ae7aeaa17ae7467f8ded3c602
MD5 e3457d0244f159d61b2738795ad8e50f
BLAKE2b-256 a6f98bdfa6fcc88224123bf4a45a278bd0f4b6b2e3ecb32d54ea3e045b4c41e0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2026.6.6-cp314-cp314t-win32.whl
Algorithm Hash digest
SHA256 1fc113672cbc4c7e2432653b691ef5a882163dcadf3f58b86914d207d9cfdfc3
MD5 310a7baef44e025b9573ffd87ced1286
BLAKE2b-256 2e48011049a6e8b3b2f891ab95762bf612e2631f3955ac3f038695b914d322a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 213caf4e803c2b71aa82d29f92ceb5455ef2ac3b5102a531fb6c76e3f4a25238
MD5 51cfcb1327eb6ff2b7726b6cef406b3b
BLAKE2b-256 04750b36513d79b9c179e1359e7f90f525ecedea2381c365d901a9dc76f5c78a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d71b886fb541e6b2a3c623b0212ddf7b28d893a49daec8687151c25d4a687b81
MD5 4e1720422d57bdffd14c2fae968fb65d
BLAKE2b-256 4edf5c5a0cfd6f323dd2e3996e6e013d3797aec2af2b21aa5895ee2844f2e702

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6fc49d43dcc1ff20934ada8e0b76f2cb3d3480e9b27332bab11f0a3ada0467e7
MD5 d9b28cfe9f942f5c1f0f8bfeb47ec6b0
BLAKE2b-256 a0c024e2c68f95aff1374732352b762f315277f594c3a29bbfd16280204ce49b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp314-cp314t-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0b1720a3f87a3143a412a6a4e8dcd1bb4bae1839db83660ac3a93cc2ad9c5fb9
MD5 599f9a2be92b0f8226ed55cb59b87638
BLAKE2b-256 da35e0c35c35a193ca8fa171d11e1918ddac7ebdf7e056dae5566f4e3a6e7b0c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2026.6.6-cp312-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 d47ecb83f27092a677b62d39072ee7d9e8b38d58e5c7a038865bd99ef1d246f4
MD5 10676b3131758068a1e1d9196e83d435
BLAKE2b-256 d13757c35993a1133e6d98910f92b1aa0018200d9ae61c77c0e39f0685ddefe4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2026.6.6-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 759b0f19a452d1cdd142785cbb7bdc6a0cfd0fa9dad59f4f9815c88a703c1663
MD5 4a0ac1cc258cbbb0e150495948929142
BLAKE2b-256 8d5b94f166f5102f05cd8624a20956cc605b27dca76222908349b1748c64bb60

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fbdfile-2026.6.6-cp312-abi3-win32.whl
Algorithm Hash digest
SHA256 dfacfd51c19e3228c3ae57541ef133838a29d2f598cc0e090950a01668866a93
MD5 edf486e4c34f88082c25ed964f26e6ad
BLAKE2b-256 093e6feffb39b84183eaa728cea292b46ddf75929c615f9b79e65a5725eca4c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp312-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d37481946b41cbba5f75e8a443a8a36bb992aa193bad3fa2fd410d3d4a6d2a58
MD5 67f6a418d7de5e5bd6fc031ace70c88c
BLAKE2b-256 1d541b8944572f53790cdfc3dca66e8ce59f5c60a11a87c2818bb30ae5e3f204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp312-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a5ea7f30dbd30f11fa0775163e7ab37915ae9929d0da46f47f9f10051a840904
MD5 abd1848581bbd49b186d9f4299d38478
BLAKE2b-256 7b65b57e19c74d28a2dec0b9da4b2953106b129cc7ab41a3acd87610310def66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fcbe1fb5192cf395819873e48c96855291570073e711b4230571c3e0c94301ba
MD5 47091d7eba44834cc9f144e0ed2dc386
BLAKE2b-256 0cde01d1f5a17a576d3bbe529ef77db3c05c928f9b7533798bdb731ba146c142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fbdfile-2026.6.6-cp312-abi3-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e664c55faf912a8f7fa5f08186f4b08fb3efbb539636669207f32b516494cc7e
MD5 d72d4d58e0e160877177928132f9e61a
BLAKE2b-256 f438050e234d17299f165d6ea3c1f7b51123d790045aff4fd4dba631e88a05eb

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