-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestall.m
72 lines (61 loc) · 1.61 KB
/
testall.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
% run all tests and self-tests for validspike (without checking output)
% Barnett 6/8/15. Changed project name, new conf mat tests 8/14/15
clear; 'please wait around 100 seconds... (apologies for the focus grabs)'
t_testall = tic; save('/tmp/testall.mat'); % save the start time info from clears
%%%%%%%%%%%%%%%%%% the tests...
% synthesis
system('rm -f data/*default_synth*'); % make clean the generated default data
loaddemodata
loaddemoclips
setup_noisemodel
noisesample
spikemodel % older, replaced by spikemod MEX
synth_Poissonspiketrain
synth_singlespikeclips
% stage A
freqfilter
detectevents
signal_moments
% todo: self-tests for empirical*.m
% stage B
alignspikes
upsample
features
cluster
% NB: spikesort_clips is tested by driver_clips
% stage C
test_spikemod
test_fitonesp
test_multifitgreedy
test_synthgreedy
test_fillscore
fit_timeseries
negloglik % older
fitonespike % older
% visualization
viewraw
listenraw
plot_spike_shapes
%points_click_waveform % test waits for user input. obsolete
powerspec
show_crosscorr
% validation
confusion_matrix
bestcolpermconfmat
labels_accuracy
times_labels_confusion_matrix
times_labels_accuracy
spikesetmatch % legacy, used only to test greedy clips in stageC_fitlib
% utils
% todo: self-tests for utils
% examples
driver_clips
driver_timeseries
driver_clips_stability
driver_timeseries_stability
%%%%%%%%%%%%%%%%%%% clean up...
load('/tmp/testall.mat'); % just to get t_testall
system('rm /tmp/testall.mat');
fprintf('\n...done all validspike tests without crashing in %.3g s; closing figs\n',toc(t_testall))
close all
if exist('spikespy'), spikespy('closeall'); end