python-neo icon indicating copy to clipboard operation
python-neo copied to clipboard

[Showcase] Enchance headers with buffer id at `BaseRawIO`

Open h-mayorquin opened this issue 5 months ago • 1 comments

This PR is not mean to be merged but to add a concrete implementation to suggest in #1544. This PR probably is incomplete and it has errors.

The idea here is that the BaseRawIO will add post parsing logic to modify the signal_streams and signal_channels headers by adding the buffer id if they are not in the new type yet. Same for signal_channels where the buffer id will be added as an extra column. In all of those cases the buffer_id is just a carbon copy of the stream_id.

This approach should enable the following workflow and progression plan:

  1. In one sweep all the classess should have the correct dtype for the header avoiding an intermediate state of the library where not all the formats have the same dtype for the headers.
  2. We can then approach each format piece-wise and assign the proper buffer ids and separate the streams logically.
  3. Once we are done with all the formats we can eliminate the post parsing code here and everything should be clean.

h-mayorquin avatar Sep 04 '24 02:09 h-mayorquin