Skip to content

Commit

Permalink
feat: remove buffer related code
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennedemontalivet committed Apr 10, 2024
1 parent 65ca64d commit 3fdac33
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 395 deletions.
25 changes: 0 additions & 25 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,31 +135,6 @@ repo <https://github.com/etiennedemontalivet/micromed-io>`__ in
emulate/read TCP script, launch the reader first that acts as server,
then the emulator.

Read online Micromed TCP in a sliding window buffer
---------------------------------------------------

If you plan to use the Micromed data as input of a decoder, you probably
want epochs of format ``(n_channels, n_samples)``. Then the
``MicromedBuffer`` class is for you. The script ``tcp_to_epoch.py``
shows you how to use it (see the ``PROCESS HERE`` comment). It uses a
**buffer** that mimics the **sliding window** and triggers each time it
is filled.

.. code:: python
from micromed_io.buffer import MicromedBuffer
micromed_buffer = MicromedBuffer(epoch_duration=5, epoch_overlap=2.5)
To run the example, you can download and run the ``tcp_to_epoch.py`` script in ``extern/``
folder:

.. code:: bash
$ python tcp_to_epoch.py --epoch-size=5 --overlap=2.5
.. note::

Try it with **emulated data** from a TRC file (cf `emulate TRC`_)

Rename TRC files with recording datetime
----------------------------------------
Expand Down
201 changes: 0 additions & 201 deletions extern/tcp_to_epoch.py

This file was deleted.

Loading

0 comments on commit 3fdac33

Please sign in to comment.