unified: Unified file format

Starting with version 3 of the PicoQuant formats, the different hardware now share a common data format. This is the .ptu or .phu file ending, representing either TTTR records or histogram data, respectively.

class picoquantio.unified.UnifiedTag(ident, index, type, value)
property ident

Alias for field number 0

property index

Alias for field number 1

property type

Alias for field number 2

property value

Alias for field number 3

picoquantio.unified.read_tags(rawdata: BufferedReader) Dict[str, Union[Any, List[Any]]]

Read tags from the header of a ptu or phu file, starting after the identity header (i.e. from offset 16). The tags are grouped by common ident into lists, typically representing the different channels or curves.

Parameters

rawdata – the raw data from the file, opened in binary format as a buffered reader

Returns

a dict of tags mapping to lists of values

picoquantio.unified.read_tags_to_list(rawdata: BufferedReader) List[UnifiedTag]

Read tags from the header of a ptu or phu file, starting after the identity header (i.e. from offset 16)

Parameters

rawdata – the raw data from the file, opened in binary format as a buffered reader

Returns

list of tags