-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neo.rawio : API enhance proposal buffer_id and stream_id #1543
Comments
I think the discussion point would be whether I would prefer to only have the stream exposed and make it clear that although we load as a buffer the user only accesses one stream at a time. Some other ios that have this are: So to make a tl;dr @samuelgarcia do you imagine:
or
and we have a dictionary that maps all possible streams to their buffers? Or to get verbose: do we every have the same stream go across multiple buffers or can we always determine the buffer based on the stream. In my experience it is 1 or more streams/buffer but not streams spread across buffers (unless we count some formats where you have one file/channel which is technically a different buffer but I don't think I would want to treat as a different buffer). |
This is great. In my view, So it would be the second option of @zm711 above that does not change the API. |
I think Heberto and I are in complete agreement in this. Just want to make sure Sam and Alessio are also cool with buffer being completely internal, which would break returning the whole buffer if someone wanted it, though. |
thanks for adding the link. this buffer_id story is to make the readers class more generic when the buffer api description will be done. |
See #1544 |
I am reading this last important stuff which is more complicated that expected (I am descovering it only now). |
Two examples off the top of my head are: openephys legacy: intan one file per channel format: |
Here a proposal for small internal enhencement for rawio layer.
For getting analogsignal using rawio at the moment we have a
parse_hedaer()
that discover "signal channels" and how they are grouped in distinct "signal stream".The notion of stream was bit ambiguous. Normally it is a group of signal channel that have the same: "sampling rate" + "size" + "dtype". In short, very often acquired by the same sub device but the notion was left to the class.
Very often a stream used to be a set of channel in the same binary buffer of hdf5 buffer.
Sometimes channels are in the same buffer but not in the same stream for instance:
We should route this channel to a secondary stream instead.
Here a proposal in add a "signal_buffer" key in the rawio.header with a unique *id and then the "signal_stream" and "signal_channel" will have stream_id
Plan :
@h-mayorquin @zm711 @alejoe91
The text was updated successfully, but these errors were encountered: