LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
78 stars 16 forks source link

Add a downsampling modifier #90

Closed PIERROOOTT closed 7 months ago

PIERROOOTT commented 7 months ago

Currently, there is only the Mean modifier that returns a value every n values and it is the mean value. Otherwise, the downstream blocks received all the values from the upstream blocks. This is not very convenient, in particular if you do not want to treat every values received from the upstream blocks.

In this PR, a modifier waiting for a given number of data points to be received, then returning the last point, and starting all over again is added (c48f677).