G-Node / python-neo

Fork of python-neo for maintaining the NIX IO.
https://github.com/NeuralEnsemble/python-neo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Make one DataArray per AnalogSignal #22

Open achilleas-k opened 5 years ago

achilleas-k commented 5 years ago

In the original mapping specification we decided to create one DataArray for each row of a Neo Signal. This was to make tagging easier: one 1D MultiTag could refer to an arbitrary number of 1D DataArrays. The inconvenience turns out to be not worth the overhead in file size created by having multiple DataArrays, with multiple dimensions, especially if the time dimension is irregularly sampled and requires a large array of time points.

EDIT: The real issue shows up when there's multiple Signals in a Segment that have a different number of channels, but even there, we could probably come up with a better solution.