Skip to content

v2024.12.28

Choose a tag to compare

@cgohlke cgohlke released this 28 Dec 23:51
· 97 commits to main since this release

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.