v2024.12.28
Read and write PicoQuant PTU and related files
Ptufile is a Python library to
- read data and metadata from PicoQuant PTU and related files (PHU, PCK, PCO, PFS, PUS, and PQRES), and
- 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.