Rymapt / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://gilestrolab.github.io/ethoscope/
GNU General Public License v3.0
0 stars 2 forks source link

Fixes #29 Issue with ROI in last column first row #38

Closed ryanfpage closed 7 years ago

ryanfpage commented 7 years ago

Found and fixed bug in the code that was causing the roi column data to be incorrect for first roi.

Changed the code so that the constructor does not require a file path this is only needed by the write function now. Refactored the write method to use the enumerate method. This is now the only function that talks to the mysql db.

mark-grimes commented 7 years ago

I haven't tested writing directly to file, but it fixes the original problem if incorrect RoI number when the the RoI was 1.