soft-matter/trackpy — pull request #57 by nkeim (2014-02-06 03:55:45+00:00)
Title: Add linker for an iterable of DataFrames

It makes sense to combine 2 great features --- DataFrame support and linker-as-generator --- into one function. This also might help support link_on_disk. I had to make a few internal changes (and track down a bug in #55), but I think this is the right way to do it. I am very open to discussion, however!

The only major problem with this PR right now is testing. I added testing for link_df_iter() as another instance of the generic test class, but it really should be called from most of the individual test cases. This would solve the other problem: we can't set the hash size if we've only seen the first frame. So some of the tests of link_df_iter() with a BTree are skipped right now.

I'd like to drop the auto-hash_size code from link_df_iter(), since it is likely to fail and only invites confusion. I suspect that we'll be making KDTree the default pretty soon anyhow. So expect some incremental updates to this PR.