File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " szcore-evaluation"
3- version = " 0.0.5 "
3+ version = " 0.0.6 "
44description = " Compare szCORE compliant annotations of EEG datasets of people with epilelpsy."
55authors = [
66 { name = " Jonathan Dan" , email = " jonathan.dan@epfl.ch" }
Original file line number Diff line number Diff line change @@ -97,8 +97,14 @@ def evaluate_dataset(
9797 hyp = Annotation (np .zeros_like (ref .mask ), ref .fs )
9898
9999 # Compute evaluation
100- sample_score = scoring .SampleScoring (ref , hyp )
101- event_score = scoring .EventScoring (ref , hyp )
100+ try :
101+ sample_score = scoring .SampleScoring (ref , hyp )
102+ event_score = scoring .EventScoring (ref , hyp )
103+ except ValueError as e :
104+ print (f"Error in { ref_tsv } : { e } " )
105+ hyp = Annotation (np .zeros_like (ref .mask ), ref .fs )
106+ sample_score = scoring .SampleScoring (ref , hyp )
107+ event_score = scoring .EventScoring (ref , hyp )
102108
103109 # Store results
104110 sample_results [subject .name ] += Result (sample_score )
You can’t perform that action at this time.
0 commit comments