Add unit tests, fix the bugs they discover #1

Merged
mih merged 76 commits from test into master 2018-09-01 08:45:30 +00:00

76 commits

Author SHA1 Message Date
f43f092172 BF: Prevent empty slices of peak saccade velocities (fixes gh-12) 2018-09-01 10:43:40 +02:00
9d18209372 TST: More testing on more real data 2018-09-01 09:49:03 +02:00
64e2589d70 ENH: Adjust default to yield good results on good data 2018-09-01 09:48:42 +02:00
9e8fc7d311 Test to visualize the nystrom target data with out tools 2018-08-31 14:04:43 +02:00
42749a23d7 BF: Seamless segmentation restored (fixes gh-11) 2018-08-31 12:23:26 +02:00
02d821d488 BF: Ignore PSOs withs amps larger than their saccades (fixes gh-4) 2018-08-31 12:01:37 +02:00
847962cf4b RF: Cleanup code and tests, make tests non-interactive 2018-08-31 11:50:44 +02:00
75d38290d5 ENH: More rebust velocity threshold determination 2018-08-31 11:27:34 +02:00
ffd40415fa Tell the classifier that we do not forsee any pursuit events 2018-08-31 10:54:10 +02:00
483be3fdda Merge remote-tracking branch 'origin/test' into test 2018-08-31 10:51:00 +02:00
f51c83dc34 BF: Prevent duplicate discovery of events (fixes gh-9)
Saccade event list wasn't sorted properly
2018-08-31 10:50:15 +02:00
Adina Wagner
8e15bad46d fix potential TypeError with old np versions 2018-08-31 09:27:34 +02:00
c8078accd4 TST: Test on the Nystrom data 2018-08-31 08:12:16 +02:00
805bcadb22 RF: Refurbish preproc tests 2018-08-31 07:46:07 +02:00
b3735da8cc RF: Consume pixel to degrees conversion 2018-08-31 07:27:04 +02:00
aa4f7d14bb RF: Merge all code into a single class 2018-08-30 20:42:52 +02:00
94a6c4304d RF: Simplify handling, convert to class 2018-08-30 20:29:21 +02:00
07db7e4a45 NF: Classify fixation vs pursuit 2018-08-30 15:34:12 +02:00
8c1ac21251 Merge remote-tracking branch 'origin/test' into test 2018-08-30 09:24:01 +02:00
c5ddf9a38b RF: Big restructuring, ready for ISP classification 2018-08-30 08:09:09 +02:00
Alex Waite
91ce0dd345 Add InputData/ folder from EventDetector1.1.zip
The public link was returning a corrupted (and ever changing) .zip file. This
data comes directly from the sysadmin of the misbehaving web server.
2018-08-28 15:53:29 +02:00
0ce1e5e58a Complete implementation of non-linear saccade detection 2018-08-28 11:58:33 +02:00
9c6d608169 NF: Draft of primary saccade detection
Only the big ones, and only up to a maximum saccade frequency
across the entire timeseries.
2018-08-28 10:26:47 +02:00
a07406510a RF: Also dilate median velocity NaNs to remove artifacts 2018-08-28 10:09:40 +02:00
b40d9179b0 Commit all kinds of stuff, prior to changing algorithm logic 2018-08-27 15:17:44 +02:00
cbe686501b ENH: Improve preprocessing (spikes, median filter inside) 2018-08-27 15:17:05 +02:00
635f66fe3f More robustness 2018-08-26 20:24:55 +02:00
181a454ced Our data absolutely requires robust measures of noise scale!!! 2018-08-26 19:56:03 +02:00
4688fe1f05 RF: Avoid various issues 2018-08-26 16:43:57 +02:00
0f995e1062 Long PSO make no sense 2018-08-26 15:53:57 +02:00
326e8cf069 ENH: Distinguish high/low velocity PSOs 2018-08-26 14:38:27 +02:00
0a52209c80 BF: Ignore saccades not preceded by stillness 2018-08-26 13:52:07 +02:00
292f0b34c8 Parameter: minimum_saccade_duration 2018-08-26 13:33:57 +02:00
1ff02f03ab Adjust plot helper 2018-08-26 13:28:49 +02:00
a856fd0694 BF: Ignore high velocities inside prev. saccades 2018-08-26 13:24:28 +02:00
ed51903da5 RF: Move onset and offset detection into functions 2018-08-26 12:54:51 +02:00
32695fa005 BF: Both saccade onset and offset have to be at local minima 2018-08-26 12:43:11 +02:00
4868c2960f NF: Parameter: minimum_fixation_duration 2018-08-26 12:35:22 +02:00
8c6f517a8c RF: Sanitize naming chaos 2018-08-26 12:17:10 +02:00
bc61509f0c Align implementation to paper: get all of the peak window 2018-08-26 12:08:19 +02:00
49fbf0f9bb Basic logging 2018-08-26 11:47:24 +02:00
2e7811d1d0 More TODO 2018-08-25 21:02:39 +02:00
d7c0771225 RF: Normalize labels, GLISSADE -> PSO 2018-08-25 20:58:18 +02:00
ada743e070 TST: More on the fixation detection 2018-08-25 20:55:55 +02:00
bc7cc3c999 ENH: Sort events 2018-08-25 16:06:03 +02:00
fea10f1229 Remove obsolete TODOs 2018-08-25 15:51:46 +02:00
b486f46291 BF: Do not leave arbitrary gaps 2018-08-25 15:49:44 +02:00
983842c6f7 RF: Report time not #samples throughout 2018-08-25 15:46:31 +02:00
5e7429e8e2 Plot helper 2018-08-25 15:37:51 +02:00
af9c5054ef NF: Spike filter after Stampe, D. M. (1993) 2018-08-24 11:03:07 +02:00
17c8dbf608 BF: Also cover final fixation 2018-08-23 16:40:48 +02:00
fe8df39c80 Explain better 2018-08-23 16:02:59 +02:00
0df1d8aecd Change in behavior, but for the better, IMHO 2018-08-23 15:10:18 +02:00
86c8be8b5c ENH: More robust approach 2018-08-23 15:07:16 +02:00
4324758a62 RF: Reformat 2018-08-23 15:05:58 +02:00
13ed44aa14 BF: Prevent undesired behavior when index gets negative 2018-08-23 15:05:20 +02:00
f0705b1224 RF: Function for OFF threshold computation 2018-08-23 15:04:46 +02:00
2f4efddaa4 RF: Rename for clarity 2018-08-23 14:37:49 +02:00
9c67eb3dd2 TODOs 2018-08-23 14:36:58 +02:00
98dd7c2e03 RF: Remove obsolete code and add notes 2018-08-23 14:31:08 +02:00
548f8ba5ec Note another fuckup 2018-08-23 14:28:26 +02:00
f92f1f3d64 BF: more robust test 2018-08-23 14:27:23 +02:00
4fc00cb6bd RF: Simplify access 2018-08-23 14:18:57 +02:00
6eb9c9bd3a BF: Change behavior (for the better, IMHO, see comment) 2018-08-23 14:17:10 +02:00
13530d2e02 RF: Simplify and make faster 2018-08-23 14:14:40 +02:00
3db49bcf4f RF+BF: We were missing saccades!! 2018-08-23 14:09:05 +02:00
64da186013 ENH: Make random noise manageable in tests 2018-08-23 13:55:28 +02:00
92d8f6a9ad RF: Standalone velocity threshold detection 2018-08-23 11:30:18 +02:00
912ef465c9 RF: Use already defined verbose variable name 2018-08-23 11:16:41 +02:00
d693b32376 BF: Make compatible with no-saccade recording 2018-08-23 11:14:42 +02:00
64c5b32d20 BF: Report entire duration as a fixation isf nothing else is found 2018-08-23 10:33:20 +02:00
299e8508bf RF: Use detection as a python function 2018-08-23 09:05:01 +02:00
4bb3c33a0a BF: Return something to store 2018-08-23 08:53:10 +02:00
a13ffc5e4f RF: Uniformize column names 2018-08-23 08:51:07 +02:00
2e94937fd9 Beautify 2018-08-23 08:44:20 +02:00
54c8300efa BF: Basic unit tests for preprocessing, various fixes 2018-08-23 08:42:14 +02:00