OpenPTV / postptv

Post processing routines for analysing PTV data.
GNU General Public License v3.0
14 stars 13 forks source link

Hdf schene representation, manipulation and saving #5

Closed yosefm closed 10 years ago

yosefm commented 10 years ago

This is going to be a long pull request with a lot of functionality. first of all, there are some fixes and minor features which I should have contributed as a separate PR, but the fact that I'm the only contributor so far justifies some slacking, I hope.

The big stuff: I rearranged a lot of the functionality so that it works not on an in-memory list of trajectories, but on HDF5 files, which can be memory-mapped so take up no memory and are additionally faster. The HDF5 trajectory format already exists in flowtracks, and it has now been made central. Other formats are easily convertible to it using flowtracks.io to read, then write back.

A tutorial exposing the new workflow, main classes and features has been added to the new doc/ subdirectory. It is an IPython notebook, which you can view here: http://nbviewer.ipython.org/github/yosefm/postptv/blob/hdf_schene/doc/hdf5_scene_analysis.ipynb

alexlib commented 10 years ago

This simply marvelous - I just got my Canopy package which includes the HDF5 and the PyTables and after a minute I got this working out of the box, with all the tests passed and the beautiful example of the IPython notebook running without any issue (well small details are: I use Canopy 32bit and for whatever reason there's a problem to link to PyQt library so use ipython notebook --pylab=osx to get inline Matplotlib figures)