File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " szcore-evaluation"
3- version = " 0.0.6 "
3+ version = " 0.0.7 "
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 @@ -92,7 +92,11 @@ def evaluate_dataset(
9292 hyp_tsv = Path (hypothesis ) / ref_tsv .relative_to (reference )
9393 if hyp_tsv .exists ():
9494 hyp = Annotations .loadTsv (hyp_tsv )
95- hyp = Annotation (hyp .getMask (FS ), FS )
95+ try :
96+ hyp = Annotation (hyp .getMask (FS ), FS )
97+ except IndexError as e :
98+ print (f"Error in { hyp_tsv } : { e } " )
99+ hyp = Annotation (np .zeros_like (ref .mask ), ref .fs )
96100 else :
97101 hyp = Annotation (np .zeros_like (ref .mask ), ref .fs )
98102
You can’t perform that action at this time.
0 commit comments