You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This channels looks differents but they belong to the same stream:
same sampling rate
same t_start
same duration
In short the same (or same group) of ADC.
The neo do not split channels depending modality. Even it is obvisous that latest channels are onther block of channel than the first part
I see, what is exactly the definition of stream? The only definition that I see on the docs are:
Now the concept of a signal stream is used to handle channel groups for signals. This enhances the way the annotation and array_annotation attributes are rendered at neo.io level.
@samuelgarcia shouldn't "same units" also be part of the definition? Would these channels with units of millivolts, grams and volts be separated into separate AnalogSignals at the neo.io level?
@apdavison
At neo.rawio no the units is not taken in account because generally one stream is one buffer, splitting this in several sub stream per units woulb be inefficient and lots of code hard to maintain.
At neo.io level this is somehow already done. There is not the stream concept at all. Signal streams are automatically split into AnalogSignals that inherently have the same units.
I think this choice is good:
neo.rawio : low level, fast buffer acces, not split on something logical (source type, units, same probe) only same ADC
neo.io: high level, buffer are split on untis
@h-mayorquin I do not thing have several units in the same tream is a problem because the splitting channel on some any grouping is quite easy for any other toolbox (neo.io or spikeinterface)
Activity
samuelgarcia commentedon Jul 1, 2022
This channels looks differents but they belong to the same stream:
In short the same (or same group) of ADC.
The neo do not split channels depending modality. Even it is obvisous that latest channels are onther block of channel than the first part
h-mayorquin commentedon Jul 1, 2022
I see, what is exactly the definition of stream? The only definition that I see on the docs are:
https://neo.readthedocs.io/en/latest/releases/0.10.0.html?highlight=stream#rawio-modules
That seems to be lacking something.
Btw, @samuelgarcia , the channel 67 over there has units of grams, this probably triggers the warning unecessarily in:
https://github.com/SpikeInterface/spikeinterface/blob/5c5ce219bc8f0901d9d2890f6e29e5de24f99a51/spikeinterface/extractors/neoextractors/neobaseextractor.py#L68-L71
apdavison commentedon Jul 4, 2022
@samuelgarcia shouldn't "same units" also be part of the definition? Would these channels with units of millivolts, grams and volts be separated into separate AnalogSignals at the
neo.iolevel?samuelgarcia commentedon Jul 4, 2022
@apdavison
At neo.rawio no the units is not taken in account because generally one stream is one buffer, splitting this in several sub stream per units woulb be inefficient and lots of code hard to maintain.
At neo.io level this is somehow already done. There is not the stream concept at all. Signal streams are automatically split into AnalogSignals that inherently have the same units.
I think this choice is good:
@h-mayorquin I do not thing have several units in the same tream is a problem because the splitting channel on some any grouping is quite easy for any other toolbox (neo.io or spikeinterface)
apdavison commentedon Jul 4, 2022
@samuelgarcia thanks for the clarification!
h-mayorquin commentedon Jul 4, 2022
@samuelgarcia thanks for taking the time to clarify.
It seems that this was caused by my misunderstanding of what constitutes a stream. I also read in
https://neo.readthedocs.io/en/stable/rawio.html
That:
AnalogSignals must have the same characteristcs across all Blocks and Segments: sampling_rate, shape[1], dtype:Which does sound similar to what you are hinting at? What is ACD?
I can add some words along the lines of the discussion here to:
https://neo.readthedocs.io/en/stable/rawio.html
If you think this would be useful and close this issue (or just close the issue).
JuliaSprenger commentedon Nov 2, 2022
This should be addressed in #1178
JuliaSprenger commentedon Apr 3, 2023
This might be also relevant for #1178