ldparser icon indicating copy to clipboard operation
ldparser copied to clipboard

In my application I use the following:

Open j-antunes opened this issue 5 years ago • 3 comments

' 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

j-antunes avatar Nov 07 '20 11:11 j-antunes

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

j-antunes avatar Jan 21 '21 21:01 j-antunes

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.

gotzl avatar Feb 18 '21 19:02 gotzl

Understood! In my experience, I find it more convenient to use a list, because I'm always getting the data by the name

j-antunes avatar Feb 25 '21 21:02 j-antunes