In my application I use the following:
' l = ldData.fromfile(file_path) self._header, self._channels = l.head, l.channs ' When used like this the l.channs is a list, and for that reason I can't do self._channels['Channel_name']. Would it be possile to change the channel from a list to a dict? Hence my commit.
The solution to issue #8
I was having a problem with decode a file. I used a online tool to detect automatically what is the encoding type. It suggested that the encoding type is cp1252. Once I change it my problem was solved, so I believe that the encoding could be cp1252
Thanks for the suggestions. I'm hesitant to change l.channs to dict as this will break the code for others, and I haven't yet made up my mind about what's the better way to access the channel (int or string ...). I'll think about it.
Understood! In my experience, I find it more convenient to use a list, because I'm always getting the data by the name