Skip to content

Commit a522cf8

Browse files
committed
Add __main__.py
1 parent c41640b commit a522cf8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "szcore-evaluation"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
description = "Compare szCORE compliant annotations of EEG datasets of people with epilelpsy."
55
authors = [
66
{ name = "Jonathan Dan", email = "jonathan.dan@epfl.ch" }

src/szcore_evaluation/__main__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
if __name__ == "__main__":
2+
import argparse
3+
from szcore_evaluation.evaluate import evaluate_dataset
4+
5+
parser = argparse.ArgumentParser(
6+
description="Compare szCORE compliant annotations of EEG datasets of people with epilelpsy."
7+
)
8+
parser.add_argument("ref", help="Path to the folder containing the reference TSV files.")
9+
parser.add_argument("hyp", help="Path to the folder containing the hypothesis TSV files.")
10+
parser.add_argument("output", help="Path to the output JSON file where the results are saved.")
11+
12+
args = parser.parse_args()
13+
evaluate_dataset(args.ref, args.hyp, args.output)

0 commit comments

Comments
 (0)