trackpy.predict.ChannelPredict.wrap_single

ChannelPredict.wrap_single(linking_fcn, *args, **kw)

Wrapper for an arbitrary linking function that causes it to use this predictor.

This wrapper causes the linker to accept and return a single DataFrame with coordinates for all frames. Because it wraps functions that use iterators of DataFrames, it should not necessarily be considered a drop-in replacement for another single-DataFrame linking function.

The linking function must accept a ‘predictor’ keyword argument. It must return an iterator of DataFrames, emitting a DataFrame each time a frame is linked.