API

class picoquantio.Identity(Identity, Version)
property Identity

Alias for field number 0

property Version

Alias for field number 1

picoquantio.get_loader(identity: Identity) Any

Returns the loader for the given file format, or raises an exception

Parameters

identity – the Identity tuple containing the hardware identity and version

Returns

a function which loads data from a given path

picoquantio.identify(path: Union[Path, str]) Identity

Return a tuple of (hardware, format, version) describing the kind of file

Parameters

path – Path to the file

Returns

(hardware, format, version)

Return type

Identity

picoquantio.load(path: Union[Path, str]) Any

Load PicoQuant data from a file, with the file type detected automatically

Parameters

path – path to the file