uwmadison-chm / bioread

Utilities to work with files from BIOPAC's AcqKnowlege software
MIT License
65 stars 23 forks source link

difference number samples #18

Closed PhoenixAlx closed 8 years ago

PhoenixAlx commented 8 years ago

Hi

I have a little problem with the file 4Channel.acq (attach two files 4Channel.acq and 4Channel.txt)

In the file 4Channel.txt I can see that th four channels have 4612 datas and whe I do

print (data);
print (len(data.channels[0].data));
print (len(data.channels[1].data));
print (len(data.channels[2].data));
print (len(data.channels[3].data));

The output is

Biopac file (rev 42): 4 channels, 200.0 samples/sec
4612
4611
4610
4609

Also I have seen that the datas 4611 and 4612 in channel 0 collected by bioread are distinct to the datas the original file acq.

What does it happen?

Thank for you job

acq.zip

njvack commented 8 years ago

There's a bug in reading the last few samples of data (it's a long story). I'm working on it and should have it fixed in a week or two.

njvack commented 8 years ago

Also, this is a dupe of #3

njvack commented 8 years ago

Well, it was more than a week or two, but this is fixed in master and once I've cleaned things up and added some tests, it'll get pushed to an actual 1.0 release.