Closed h-mayorquin closed 1 month ago
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.
Sam will comment on this shortly.
Ok, after personal discussion it seems it is unclear why it is this way. It seems that it was bytes so it could be generalized if the need arose.
We should be watchful because I think the assumption that people make is that those properties are strings or numeric types and it would not play as expected when writing it to other format (like json or nwb).
This for example, was changed in probeinterface because we could not serialize the bytes to json:
So here:
https://github.com/NeuralEnsemble/python-neo/blob/315f485eb24c8d17aaebc5d6b56a336840913b66/neo/rawio/baserawio.py#L123-L127
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.