tomtag.sync_to_clock ============================================= .. raw:: html
tomtag.sync_to_clock(tagsA, tagsB, sizeA, sizeB, tcc)
[source]
given a signal that was registered with an untrusted clock, if you have access to a trusted periodic signal registered with the same untrusted clock, you can make the adjust the tags, given this knowledge about the periodic signal.

Examples

>>> import tomtag as tt
    >>> import numpy as np
    >>> tagsA = np.array([12,679,1289,1487])
    >>> tagsSync = np.array([20,409,879,1287])
    >>> period = 400
    >>> 
    >>> hist = tt.sync_to_clock(tagsA, tagsSync, len(tagsA), len(tagsSync), period)