Skip to content

Releases: cgohlke/ptufile

v2025.11.8

08 Nov 21:57

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, PQRES, PQDAT, SPQR, and BIN), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Fix reading files with negative TTResult_NumberOfRecords.
  • Remove cache argument from PtuFile.read_records (breaking).
  • Add cache_records property to PtuFile to control caching behavior.
  • Derive PqFileError from ValueError.
  • Factor out BinaryFile base class.
  • Build ABI3 wheels.

v2025.9.9

10 Sep 00:58

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, PQRES, PQDAT, and SPQR), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Log error when decoding image with invalid line or frame masks.

v2025.7.30

30 Jul 00:31

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, PQRES, PQDAT, and SPQR), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Add option to specify pixel time for decoding images.
  • Add functions to read and write PicoQuant BIN files.
  • Drop support for Python 3.10.

v2025.5.10

10 May 19:55

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, PQRES, PQDAT, and SPQR), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Mark Cython extension free-threading compatible.
  • Support Python 3.14.

v2025.2.20

19 Feb 23:44

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, PQRES, PQDAT, and SPQR), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Rename PqFileMagic to PqFileType (breaking).
  • Rename PqFile.magic to PqFile.type (breaking).
  • Add PQDAT and SPQR file types.

v2025.2.12

12 Feb 01:47

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, and PQRES), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Add options to specify file open modes to PqFile and PtuFile.read_records.
  • Add convenience properties to PqFile and PtuFile.
  • Cache records read from file.

v2025.1.13

13 Jan 19:00

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, and PQRES), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Fall back to file size if TTResult_NumberOfRecords is zero (#2).

v2024.12.28

28 Dec 23:51

Choose a tag to compare

Read and write PicoQuant PTU and related files

Ptufile is a Python library to

  1. read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, and PQRES), and
  2. write TCSPC histograms to T3 image mode PTU files.

PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Add imwrite function to encode TCSPC image histogram in T3 PTU format.
  • Add enums for more PTU tag values.
  • Add PqFile.datetime property.
  • Read TDateTime tag as datetime instead of struct_time (breaking).
  • Rename PtuFile.type property to record_type (breaking).
  • Fix reading PHU missing HistResDscr_HWBaseResolution tag.
  • Warn if tags are not 8-byte aligned in file.

v2024.12.20

21 Dec 05:36

Choose a tag to compare

Read PicoQuant PTU and related files

Ptufile is a Python library to read image and metadata from PicoQuant PTU and related files: PHU, PCK, PCO, PFS, PUS, and PQRES. PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Support bi-directional sinusoidal scanning (WIP).

v2024.11.26

27 Nov 01:48

Choose a tag to compare

Read PicoQuant PTU and related files

Ptufile is a Python library to read image and metadata from PicoQuant PTU and related files: PHU, PCK, PCO, PFS, PUS, and PQRES. PTU files contain time correlated single photon counting (TCSPC) measurement data and instrumentation parameters.

Changes

  • Support bi-directional scanning (FLIMbee scanner).
  • Drop support for Python 3.9.