On 24.03.2012, Jon Clements <jon...@googlemail.com> wroted: > It might also be worth checking out pandas[1] and scikits.statsmodels[2]. > > In terms of reading data in a loop I would probably go for a > producer-consumer model (possibly using a Queue[3]). Have the consumer > constantly try to get another reading, and notify the consumer which can then > determine if it's got enough data to calculate a peak/trough. This article is > also a fairly good read[4]. > > That's some pointers anyway, > > hth, > > Jon. > > [1] http://pandas.pydata.org/ > [2] http://statsmodels.sourceforge.net/ > [3] http://docs.python.org/library/queue.html > [4] > http://www.laurentluce.com/posts/python-threads-synchronization-locks-rlocks-semaphores-conditions-events-and-queues/
Thanks for the suggestions. GS -- Grzegorz Staniak <gstaniak _at_ gmail [dot] com> -- http://mail.python.org/mailman/listinfo/python-list