The c++ code adds some corrections to the least significant bits of the full ToA timestamp https://github.com/svihra/TimePix3/blob/8499a6c0c9bb196931483f4152077203823fba8a/dataprocess.cpp#L998 This needs to be implemented in the numba/Python.