NeuralEnsemble/python-neo

Why is the event channels header dtype is in bytes?

Opened this issue · 3 comments

So here:

_event_channel_dtype = [
    ("name", "U64"),
    ("id", "U64"),
    ("type", "S5"),  <---- HERE ATTENTION THIS IS BYTES
]

_event_channel_dtype = [
("name", "U64"),
("id", "U64"),
("type", "S5"), # epoch or event
]

I think this might bring problems down the line. Is this intentional? it seems to me that it should be strings and in fact in Plexon is extracted as a string and implicitly converted to bytes when the header is built.

zm711 commented

I think @samuelgarcia or maybe @JuliaSprenger would know. I'll also tag @apdavison in case he does. I have no clue why that would be the case...

I guess this is me but I do not remember.
I need to read it again to refresh.
Give a couple of days.

zm711 commented

Sam will comment on this shortly.